-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from rdohms/2.dev
[WiP] 2.dev
- Loading branch information
Showing
93 changed files
with
3,592 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tests/_reports | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- hhvm | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --dev | ||
|
||
script: phpunit | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,17 @@ | |
|
||
This library provides a service that can be used to filter object values based on annotations | ||
|
||
## Installation | ||
## Install | ||
|
||
### Composer | ||
Use composer to add DMS\Filter to your app | ||
|
||
composer.phar require dms/dms-filter=~1.1 | ||
`composer require dms/dms-filter:~2.0` | ||
|
||
This will get you the latest compatible version with 2.0 without BC breaks. | ||
|
||
## Usage | ||
|
||
Your Entity: | ||
Your Entity: | ||
|
||
```php | ||
<?php | ||
|
@@ -43,7 +45,7 @@ class User | |
|
||
} | ||
?> | ||
``` | ||
``` | ||
|
||
Filtering: | ||
|
||
|
@@ -75,15 +77,15 @@ Filtering: | |
echo $user->name; //"My name" | ||
echo $user->email; //"[email protected]" | ||
?> | ||
``` | ||
``` | ||
|
||
Full example: https://gist.github.com/1098352 | ||
|
||
## Dependencies | ||
|
||
This package relies on these external libraries: | ||
|
||
* Doctrine Common: Reader and Cache | ||
* Doctrine Annotations | ||
|
||
## Contributing | ||
|
||
|
@@ -92,12 +94,11 @@ Feel free to send pull requests, just follow these guides: | |
* Fork | ||
* Code | ||
* Test | ||
* Tests are in: https://github.com/rdohms/DMS | ||
* Just create Testcase and run `phpunit` inside the `tests` folder | ||
* Just create FilterTestCase and run `phpunit` | ||
* Submit PR | ||
|
||
## Credits | ||
|
||
This library is inspired by the Symfony 2 Validator component and is meant to work alongside it. | ||
This library is inspired by the Symfony 2 Validator component and is meant to work alongside it. | ||
|
||
Symfony 2 Validator: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.