Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Composer to support Laravel 6.x, move from Phpsafari -> PhpSafari #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3

sudo: required

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ OK

Will throw:

`Vistik\Exception\InvalidTypeException: Item (string) 'User' is not a Vistik\Example\User object!`
`PhpSafari\Exception\InvalidTypeException: Item (string) 'User' is not a PhpSafari\Example\User object!`

### Install
Run `composer require vistik/typed-collections`
Expand All @@ -38,15 +38,15 @@ They can be created with out-of-the-box laraval style helpers:
### Do I have to create a type for each list? Yes, but
Look how easy it is:

use Phpsafari\Example\User;
use PhpSafari\Example\User;
class UserCollection extends TypedCollection{
protected $type = User::class;
}

2 simple steps

1) Create a Class eg. `AccountCollection` extend `TypedCollection`
2) Just replace `protected $type = 'Vistik\Example\User';` with your class
2) Just replace `protected $type = 'PhpSafari\Example\User';` with your class

or

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
}
],
"require": {
"php": ">=7.0.0",
"illuminate/support": "5.4.*|5.3.*|5.2.*|5.1.*"
"php": "^7.2",
"illuminate/support": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "~6.0",
"spatie/phpunit-watcher": "^1.3",
"squizlabs/php_codesniffer": "*",
"phpmd/phpmd": "^2.6"
"phpunit/phpunit": "~8.0",
"spatie/phpunit-watcher": "^1.21",
"squizlabs/php_codesniffer": "^3.5",
"phpmd/phpmd": "^2.7"
},
"autoload": {
"psr-4": {
"Phpsafari\\": "src/"
"PhpSafari\\": "src/"
},
"files": [
"src/helpers.php"
Expand Down
Loading