Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: alexpts/php-data-transformer2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6.1.0
Choose a base ref
...
head repository: alexpts/php-data-transformer2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 8 files changed
  • 1 contributor

Commits on Mar 2, 2022

  1. update dependencies

    alexpts committed Mar 2, 2022
    Copy the full SHA
    806dbc1 View commit details

Commits on May 28, 2022

  1. update dependencies

    alexpts committed May 28, 2022
    Copy the full SHA
    3e5b73b View commit details
  2. refactoring

    alexpts committed May 28, 2022
    Copy the full SHA
    8d8b7b2 View commit details
  3. move CI to GitHub actions

    alexpts committed May 28, 2022
    Copy the full SHA
    4febcac View commit details

Commits on Jan 5, 2023

  1. update dependencies

    alexpts committed Jan 5, 2023
    Copy the full SHA
    bad1d0d View commit details
  2. add support php 8.2

    alexpts committed Jan 5, 2023
    Copy the full SHA
    4f78ff1 View commit details
Showing with 164 additions and 664 deletions.
  1. +0 −6 .codeclimate.yml
  2. +43 −0 .github/workflows/phpunit.yml
  3. +0 −17 .scrutinizer.yml
  4. +0 −11 .travis.yml
  5. +2 −4 README.md
  6. +5 −3 composer.json
  7. +111 −621 composer.lock
  8. +3 −2 src/DataTransformer.php
6 changes: 0 additions & 6 deletions .codeclimate.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: phpunit

on:
pull_request: {}
release: {}
push:
branches: [ master ]

jobs:
tests:
name: unit tests
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: [ 8.1, 8.2 ]

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6

- name: phpunit tests ${{ matrix.php-versions }}
uses: php-actions/phpunit@v3
with:
configuration: test/phpunit.xml
php_extensions: pcov
php_version: ${{ matrix.php-versions }}
version: 9.5

- name: coverage monitor
uses: slavcodev/coverage-monitor-action@1.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_path: test/clover.xml
comment_footer: false

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: test/clover.xml
name: github-ci
verbose: true
17 changes: 0 additions & 17 deletions .scrutinizer.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# php-data-transformer2

[![Build Status](https://travis-ci.org/alexpts/php-data-transformer2.svg?branch=master)](https://travis-ci.org/alexpts/php-data-transformer2)
[![Code Coverage](https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/?branch=master)
[![Code Climate](https://codeclimate.com/github/alexpts/php-data-transformer2/badges/gpa.svg)](https://codeclimate.com/github/alexpts/php-data-transformer2)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/?branch=master)
[![phpunit](https://github.com/alexpts/php-data-transformer2/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/alexpts/php-data-transformer2/actions/workflows/phpunit.yml)
[![codecov](https://codecov.io/gh/alexpts/php-data-transformer2/branch/master/graph/badge.svg?token=14L6IJA5UE)](https://codecov.io/gh/alexpts/php-data-transformer2)

Позволяет извлекать данные из объектов и создавать объекты из данных. Позволяет делать это по заранее опрелделенной схеме в обе стороны. Например извлечь данные из Model для записи в БД. Либо создать/заполнить Model данными из БД.

8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -24,14 +24,16 @@
},
"minimum-stability": "stable",
"require": {
"php": "^8.1",
"php": ">=8.1",
"psr/container": "^2.0",
"alexpts/php-hydrator": "^5.0"
},
"require-dev": {
"fzaninotto/faker": "dev-master",
"phpunit/phpunit": "^9.5",
"blackfire/php-sdk": "^1.28"
"phpunit/phpunit": "^9.5"
},
"suggest": {
"blackfire/php-sdk": "^1.30"
},
"autoload": {
"psr-4": {
Loading