diff --git a/composer.json b/composer.json index e43083d..a45fe10 100644 --- a/composer.json +++ b/composer.json @@ -13,13 +13,12 @@ } ], "require": { - "nilportugues/json-api": "dev-master", + "nilportugues/json-api": "2.0.0-rc1", "symfony/psr-http-message-bridge": "~0.2", "nilportugues/serializer-eloquent": "^1.0" }, "require-dev": { "laravel/laravel": "5.*", - "nilportugues/php_backslasher": "~0.2", "fabpot/php-cs-fixer": "^1.10" }, "autoload": { diff --git a/composer.lock b/composer.lock deleted file mode 100644 index c6d2c50..0000000 --- a/composer.lock +++ /dev/null @@ -1,2731 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", - "This file is @generated automatically" - ], - "hash": "53fe120710dd6356b8888f21863b7e0f", - "content-hash": "cc7451d11c97326b30a3b70e930a3ead", - "packages": [ - { - "name": "classpreloader/classpreloader", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/ClassPreloader/ClassPreloader.git", - "reference": "9b10b913c2bdf90c3d2e0d726b454fb7f77c552a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ClassPreloader/ClassPreloader/zipball/9b10b913c2bdf90c3d2e0d726b454fb7f77c552a", - "reference": "9b10b913c2bdf90c3d2e0d726b454fb7f77c552a", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^1.0|^2.0", - "php": ">=5.5.9" - }, - "require-dev": { - "phpunit/phpunit": "^4.8|^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "psr-4": { - "ClassPreloader\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com" - }, - { - "name": "Graham Campbell", - "email": "graham@alt-three.com" - } - ], - "description": "Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case", - "keywords": [ - "autoload", - "class", - "preload" - ], - "time": "2015-11-09 22:51:51" - }, - { - "name": "danielstjules/stringy", - "version": "1.10.0", - "source": { - "type": "git", - "url": "https://github.com/danielstjules/Stringy.git", - "reference": "4749c205db47ee5b32e8d1adf6d9aff8db6caf3b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/danielstjules/Stringy/zipball/4749c205db47ee5b32e8d1adf6d9aff8db6caf3b", - "reference": "4749c205db47ee5b32e8d1adf6d9aff8db6caf3b", - "shasum": "" - }, - "require": { - "ext-mbstring": "*", - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Stringy\\": "src/" - }, - "files": [ - "src/Create.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel St. Jules", - "email": "danielst.jules@gmail.com", - "homepage": "http://www.danielstjules.com" - } - ], - "description": "A string manipulation library with multibyte support", - "homepage": "https://github.com/danielstjules/Stringy", - "keywords": [ - "UTF", - "helpers", - "manipulation", - "methods", - "multibyte", - "string", - "utf-8", - "utility", - "utils" - ], - "time": "2015-07-23 00:54:12" - }, - { - "name": "dnoegel/php-xdg-base-dir", - "version": "0.1", - "source": { - "type": "git", - "url": "https://github.com/dnoegel/php-xdg-base-dir.git", - "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a", - "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "@stable" - }, - "type": "project", - "autoload": { - "psr-4": { - "XdgBaseDir\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "implementation of xdg base directory specification for php", - "time": "2014-10-24 07:27:01" - }, - { - "name": "doctrine/inflector", - "version": "v1.1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "4.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "Common String Manipulations with regard to casing and singular/plural rules.", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "inflection", - "pluralize", - "singularize", - "string" - ], - "time": "2015-11-06 14:35:42" - }, - { - "name": "jakub-onderka/php-console-color", - "version": "0.1", - "source": { - "type": "git", - "url": "https://github.com/JakubOnderka/PHP-Console-Color.git", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "jakub-onderka/php-code-style": "1.0", - "jakub-onderka/php-parallel-lint": "0.*", - "jakub-onderka/php-var-dump-check": "0.*", - "phpunit/phpunit": "3.7.*", - "squizlabs/php_codesniffer": "1.*" - }, - "type": "library", - "autoload": { - "psr-0": { - "JakubOnderka\\PhpConsoleColor": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "jakub.onderka@gmail.com", - "homepage": "http://www.acci.cz" - } - ], - "time": "2014-04-08 15:00:19" - }, - { - "name": "jakub-onderka/php-console-highlighter", - "version": "v0.3.2", - "source": { - "type": "git", - "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git", - "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5", - "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5", - "shasum": "" - }, - "require": { - "jakub-onderka/php-console-color": "~0.1", - "php": ">=5.3.0" - }, - "require-dev": { - "jakub-onderka/php-code-style": "~1.0", - "jakub-onderka/php-parallel-lint": "~0.5", - "jakub-onderka/php-var-dump-check": "~0.1", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5" - }, - "type": "library", - "autoload": { - "psr-0": { - "JakubOnderka\\PhpConsoleHighlighter": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "acci@acci.cz", - "homepage": "http://www.acci.cz/" - } - ], - "time": "2015-04-20 18:58:01" - }, - { - "name": "jeremeamia/SuperClosure", - "version": "2.1.0", - "source": { - "type": "git", - "url": "https://github.com/jeremeamia/super_closure.git", - "reference": "b712f39c671e5ead60c7ebfe662545456aade833" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/jeremeamia/super_closure/zipball/b712f39c671e5ead60c7ebfe662545456aade833", - "reference": "b712f39c671e5ead60c7ebfe662545456aade833", - "shasum": "" - }, - "require": { - "nikic/php-parser": "~1.0", - "php": ">=5.4" - }, - "require-dev": { - "codeclimate/php-test-reporter": "~0.1.2", - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" - } - }, - "autoload": { - "psr-4": { - "SuperClosure\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia", - "role": "Developer" - } - ], - "description": "Serialize Closure objects, including their context and binding", - "homepage": "https://github.com/jeremeamia/super_closure", - "keywords": [ - "closure", - "function", - "lambda", - "parser", - "serializable", - "serialize", - "tokenizer" - ], - "time": "2015-03-11 20:06:43" - }, - { - "name": "laravel/framework", - "version": "v5.1.24", - "source": { - "type": "git", - "url": "https://github.com/laravel/framework.git", - "reference": "875baf2d1645ce23e2ec0bf94fa7bb3e7fbfd6ed" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/875baf2d1645ce23e2ec0bf94fa7bb3e7fbfd6ed", - "reference": "875baf2d1645ce23e2ec0bf94fa7bb3e7fbfd6ed", - "shasum": "" - }, - "require": { - "classpreloader/classpreloader": "~2.0|~3.0", - "danielstjules/stringy": "~1.8", - "doctrine/inflector": "~1.0", - "ext-mbstring": "*", - "ext-openssl": "*", - "jeremeamia/superclosure": "~2.0", - "league/flysystem": "~1.0", - "monolog/monolog": "~1.11", - "mtdowling/cron-expression": "~1.0", - "nesbot/carbon": "~1.19", - "paragonie/random_compat": "~1.1", - "php": ">=5.5.9", - "psy/psysh": "0.6.*", - "swiftmailer/swiftmailer": "~5.1", - "symfony/console": "2.7.*", - "symfony/css-selector": "2.7.*", - "symfony/debug": "2.7.*", - "symfony/dom-crawler": "2.7.*", - "symfony/finder": "2.7.*", - "symfony/http-foundation": "2.7.*", - "symfony/http-kernel": "2.7.*", - "symfony/process": "2.7.*", - "symfony/routing": "2.7.*", - "symfony/translation": "2.7.*", - "symfony/var-dumper": "2.7.*", - "vlucas/phpdotenv": "~1.0" - }, - "replace": { - "illuminate/auth": "self.version", - "illuminate/broadcasting": "self.version", - "illuminate/bus": "self.version", - "illuminate/cache": "self.version", - "illuminate/config": "self.version", - "illuminate/console": "self.version", - "illuminate/container": "self.version", - "illuminate/contracts": "self.version", - "illuminate/cookie": "self.version", - "illuminate/database": "self.version", - "illuminate/encryption": "self.version", - "illuminate/events": "self.version", - "illuminate/exception": "self.version", - "illuminate/filesystem": "self.version", - "illuminate/foundation": "self.version", - "illuminate/hashing": "self.version", - "illuminate/http": "self.version", - "illuminate/log": "self.version", - "illuminate/mail": "self.version", - "illuminate/pagination": "self.version", - "illuminate/pipeline": "self.version", - "illuminate/queue": "self.version", - "illuminate/redis": "self.version", - "illuminate/routing": "self.version", - "illuminate/session": "self.version", - "illuminate/support": "self.version", - "illuminate/translation": "self.version", - "illuminate/validation": "self.version", - "illuminate/view": "self.version" - }, - "require-dev": { - "aws/aws-sdk-php": "~3.0", - "iron-io/iron_mq": "~2.0", - "mockery/mockery": "~0.9.1", - "pda/pheanstalk": "~3.0", - "phpunit/phpunit": "~4.0", - "predis/predis": "~1.0" - }, - "suggest": { - "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (~3.0).", - "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.4).", - "fzaninotto/faker": "Required to use the eloquent factory builder (~1.4).", - "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers (~5.3|~6.0).", - "iron-io/iron_mq": "Required to use the iron queue driver (~2.0).", - "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", - "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", - "pda/pheanstalk": "Required to use the beanstalk queue driver (~3.0).", - "predis/predis": "Required to use the redis cache and queue drivers (~1.0).", - "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~2.0)." - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/Illuminate/Queue/IlluminateQueueClosure.php" - ], - "files": [ - "src/Illuminate/Foundation/helpers.php", - "src/Illuminate/Support/helpers.php" - ], - "psr-4": { - "Illuminate\\": "src/Illuminate/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylorotwell@gmail.com" - } - ], - "description": "The Laravel Framework.", - "homepage": "http://laravel.com", - "keywords": [ - "framework", - "laravel" - ], - "time": "2015-11-11 22:45:42" - }, - { - "name": "league/flysystem", - "version": "1.0.15", - "source": { - "type": "git", - "url": "https://github.com/thephpleague/flysystem.git", - "reference": "31525caf9e8772683672fefd8a1ca0c0736020f4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/31525caf9e8772683672fefd8a1ca0c0736020f4", - "reference": "31525caf9e8772683672fefd8a1ca0c0736020f4", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "conflict": { - "league/flysystem-sftp": "<1.0.6" - }, - "require-dev": { - "ext-fileinfo": "*", - "mockery/mockery": "~0.9", - "phpspec/phpspec": "^2.2", - "phpspec/prophecy-phpunit": "~1.0", - "phpunit/phpunit": "~4.1" - }, - "suggest": { - "ext-fileinfo": "Required for MimeType", - "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", - "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", - "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", - "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", - "league/flysystem-copy": "Allows you to use Copy.com storage", - "league/flysystem-dropbox": "Allows you to use Dropbox storage", - "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", - "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", - "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", - "league/flysystem-webdav": "Allows you to use WebDAV storage", - "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "psr-4": { - "League\\Flysystem\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Frank de Jonge", - "email": "info@frenky.net" - } - ], - "description": "Filesystem abstraction: Many filesystems, one API.", - "keywords": [ - "Cloud Files", - "WebDAV", - "abstraction", - "aws", - "cloud", - "copy.com", - "dropbox", - "file systems", - "files", - "filesystem", - "filesystems", - "ftp", - "rackspace", - "remote", - "s3", - "sftp", - "storage" - ], - "time": "2015-09-30 22:26:59" - }, - { - "name": "monolog/monolog", - "version": "1.17.2", - "source": { - "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "bee7f0dc9c3e0b69a6039697533dca1e845c8c24" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bee7f0dc9c3e0b69a6039697533dca1e845c8c24", - "reference": "bee7f0dc9c3e0b69a6039697533dca1e845c8c24", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "psr/log": "~1.0" - }, - "provide": { - "psr/log-implementation": "1.0.0" - }, - "require-dev": { - "aws/aws-sdk-php": "^2.4.9", - "doctrine/couchdb": "~1.0@dev", - "graylog2/gelf-php": "~1.0", - "jakub-onderka/php-parallel-lint": "0.9", - "php-console/php-console": "^3.1.3", - "phpunit/phpunit": "~4.5", - "phpunit/phpunit-mock-objects": "2.3.0", - "raven/raven": "^0.13", - "ruflin/elastica": ">=0.90 <3.0", - "swiftmailer/swiftmailer": "~5.3", - "videlalvaro/php-amqplib": "~2.4" - }, - "suggest": { - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mongo": "Allow sending log messages to a MongoDB server", - "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "php-console/php-console": "Allow sending log messages to Google Chrome", - "raven/raven": "Allow sending log messages to a Sentry server", - "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.16.x-dev" - } - }, - "autoload": { - "psr-4": { - "Monolog\\": "src/Monolog" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "homepage": "http://github.com/Seldaek/monolog", - "keywords": [ - "log", - "logging", - "psr-3" - ], - "time": "2015-10-14 12:51:02" - }, - { - "name": "mtdowling/cron-expression", - "version": "v1.0.4", - "source": { - "type": "git", - "url": "https://github.com/mtdowling/cron-expression.git", - "reference": "fd92e883195e5dfa77720b1868cf084b08be4412" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mtdowling/cron-expression/zipball/fd92e883195e5dfa77720b1868cf084b08be4412", - "reference": "fd92e883195e5dfa77720b1868cf084b08be4412", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "4.*" - }, - "type": "library", - "autoload": { - "psr-0": { - "Cron": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", - "keywords": [ - "cron", - "schedule" - ], - "time": "2015-01-11 23:07:46" - }, - { - "name": "nesbot/carbon", - "version": "1.21.0", - "source": { - "type": "git", - "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "7b08ec6f75791e130012f206e3f7b0e76e18e3d7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7b08ec6f75791e130012f206e3f7b0e76e18e3d7", - "reference": "7b08ec6f75791e130012f206e3f7b0e76e18e3d7", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "symfony/translation": "~2.6|~3.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0|~5.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Carbon\\": "src/Carbon/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Brian Nesbitt", - "email": "brian@nesbot.com", - "homepage": "http://nesbot.com" - } - ], - "description": "A simple API extension for DateTime.", - "homepage": "http://carbon.nesbot.com", - "keywords": [ - "date", - "datetime", - "time" - ], - "time": "2015-11-04 20:07:17" - }, - { - "name": "nikic/php-parser", - "version": "v1.4.1", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51", - "reference": "f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "files": [ - "lib/bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "time": "2015-09-19 14:15:08" - }, - { - "name": "nilportugues/api-transformer", - "version": "1.3.0", - "source": { - "type": "git", - "url": "https://github.com/nilportugues/api-transformer.git", - "reference": "9177b3668ab34737d1f516564176cafe48c047f0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nilportugues/api-transformer/zipball/9177b3668ab34737d1f516564176cafe48c047f0", - "reference": "9177b3668ab34737d1f516564176cafe48c047f0", - "shasum": "" - }, - "require": { - "nilportugues/serializer": "~1.1", - "php": ">=5.5.0", - "psr/http-message": "~1.0", - "zendframework/zend-diactoros": "^1.1.0" - }, - "require-dev": { - "fabpot/php-cs-fixer": "~1.9", - "mmoreram/php-formatter": "dev-master", - "nilportugues/php_backslasher": "~0.2", - "phpunit/phpunit": "5.*", - "satooshi/php-coveralls": "dev-master" - }, - "type": "library", - "autoload": { - "psr-4": { - "NilPortugues\\Api\\Http\\": "src/Http/", - "NilPortugues\\Api\\Mapping\\": "src/Mapping/", - "NilPortugues\\Api\\Mappings\\": "src/Mappings/", - "NilPortugues\\Api\\Transformer\\": "src/Transformer/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nil Portugués Calderó", - "email": "contact@nilportugues.com", - "role": "Project Lead Developer" - } - ], - "description": "Base library providing the core functionality for API transformation.", - "homepage": "http://nilportugues.com", - "keywords": [ - "api", - "psr7", - "response", - "serializer", - "transformer" - ], - "time": "2015-11-23 21:37:40" - }, - { - "name": "nilportugues/json-api", - "version": "dev-master", - "source": { - "type": "git", - "url": "https://github.com/nilportugues/jsonapi-transformer.git", - "reference": "4f001bfb65fba70ff62a6ba61358e169221d83ec" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nilportugues/jsonapi-transformer/zipball/4f001bfb65fba70ff62a6ba61358e169221d83ec", - "reference": "4f001bfb65fba70ff62a6ba61358e169221d83ec", - "shasum": "" - }, - "require": { - "nilportugues/api-transformer": "~1.3", - "nilportugues/php_backslasher": "^0.2.1", - "php": ">=5.5.0", - "symfony/http-foundation": "^2.7", - "symfony/psr-http-message-bridge": "0.2" - }, - "require-dev": { - "fabpot/php-cs-fixer": "^1.9", - "mmoreram/php-formatter": "dev-master", - "phpunit/phpunit": "4.4.*", - "satooshi/php-coveralls": "dev-master" - }, - "type": "library", - "autoload": { - "psr-4": { - "NilPortugues\\Api\\JsonApi\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nil Portugués Calderó", - "email": "contact@nilportugues.com", - "role": "Project Lead Developer" - } - ], - "description": "Serializer transformers outputting valid API responses in JSON, JSON API and HAL+JSON API formats.", - "homepage": "http://nilportugues.com", - "keywords": [ - "api", - "json", - "jsonapi", - "psr7", - "response", - "serializer", - "transformer" - ], - "time": "2015-11-24 20:48:50" - }, - { - "name": "nilportugues/php_backslasher", - "version": "0.2.2", - "source": { - "type": "git", - "url": "https://github.com/nilportugues/php_backslasher.git", - "reference": "9368b2836cebb2f5d6e953b52c098769b90ceba7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nilportugues/php_backslasher/zipball/9368b2836cebb2f5d6e953b52c098769b90ceba7", - "reference": "9368b2836cebb2f5d6e953b52c098769b90ceba7", - "shasum": "" - }, - "require": { - "php": ">=5.4", - "symfony/console": "~2.2", - "zendframework/zend-code": "~2" - }, - "require-dev": { - "fabpot/php-cs-fixer": "1.4.2", - "phpunit/phpunit": "4.5.0" - }, - "bin": [ - "bin/php_backslasher" - ], - "type": "library", - "autoload": { - "psr-4": { - "NilPortugues\\BackslashFixer\\": "src/BackslashFixer/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nil Portugués Calderó", - "email": "contact@nilportugues.com", - "role": "Project Lead Developer" - } - ], - "description": "Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.", - "homepage": "http://nilportugues.com", - "keywords": [ - "Opcache", - "backflash", - "fixer", - "function", - "micro-optimization", - "namespace", - "namespaces", - "nikita", - "optimization", - "performance", - "php" - ], - "time": "2015-11-03 20:13:25" - }, - { - "name": "nilportugues/serializer", - "version": "1.1.7", - "source": { - "type": "git", - "url": "https://github.com/nilportugues/serializer.git", - "reference": "655119feef090fc65a2bf711561073a805515f27" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nilportugues/serializer/zipball/655119feef090fc65a2bf711561073a805515f27", - "reference": "655119feef090fc65a2bf711561073a805515f27", - "shasum": "" - }, - "require": { - "php": ">=5.6.0", - "symfony/yaml": "^2.7" - }, - "require-dev": { - "doctrine/collections": "^1.3", - "fabpot/php-cs-fixer": "^1.9", - "mmoreram/php-formatter": "dev-master", - "nilportugues/php_backslasher": "~0.2", - "phpunit/phpunit": "5.*", - "satooshi/php-coveralls": "dev-master" - }, - "type": "library", - "autoload": { - "psr-4": { - "NilPortugues\\Serializer\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nil Portugués Calderó", - "email": "contact@nilportugues.com", - "role": "Project Lead Developer" - }, - { - "name": "Zumba Fitness, LLC", - "email": "engineering@zumba.com", - "role": "Author of the original idea: https://github.com/zumba/json-serializer" - }, - { - "name": "Juan Basso", - "email": "juan.basso@zumba.com", - "role": "Author of the original idea: https://github.com/zumba/json-serializer" - } - ], - "description": "Serialize PHP variables, including objects, in any format. Support to unserialize it too.", - "homepage": "http://nilportugues.com", - "keywords": [ - "json", - "serialize", - "serializer" - ], - "time": "2015-11-21 16:36:31" - }, - { - "name": "nilportugues/serializer-eloquent", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/nilportugues/serializer-eloquent-driver.git", - "reference": "183b2e4dd7ed27b4385e0569ea0ccfc1ae85c798" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nilportugues/serializer-eloquent-driver/zipball/183b2e4dd7ed27b4385e0569ea0ccfc1ae85c798", - "reference": "183b2e4dd7ed27b4385e0569ea0ccfc1ae85c798", - "shasum": "" - }, - "require": { - "illuminate/database": "^5.1", - "nilportugues/serializer": "~1.1", - "php": ">=5.5.0" - }, - "require-dev": { - "fabpot/php-cs-fixer": "^1.9", - "mmoreram/php-formatter": "dev-master", - "phpunit/phpunit": "4.4.*", - "satooshi/php-coveralls": "dev-master" - }, - "type": "library", - "autoload": { - "psr-4": { - "NilPortugues\\Serializer\\Drivers\\Eloquent\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nil Portugués Calderó", - "email": "contact@nilportugues.com", - "role": "Project Lead Developer" - } - ], - "description": "Eloquent Driver for NilPortugues Serializer outputting valid API responses in JSON, JSON API and HAL+JSON API formats.", - "homepage": "http://nilportugues.com", - "keywords": [ - "api", - "eloquent", - "json", - "jsonapi", - "laravel", - "nilportugues", - "orm", - "psr7", - "response", - "serializer", - "transformer" - ], - "time": "2015-11-21 16:09:48" - }, - { - "name": "paragonie/random_compat", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "19f765b66c6fbb56ee3b11bc16d52e38eebdc295" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/19f765b66c6fbb56ee3b11bc16d52e38eebdc295", - "reference": "19f765b66c6fbb56ee3b11bc16d52e38eebdc295", - "shasum": "" - }, - "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "type": "library", - "autoload": { - "files": [ - "lib/random.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "pseudorandom", - "random" - ], - "time": "2015-11-10 00:45:41" - }, - { - "name": "psr/http-message", - "version": "1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", - "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "time": "2015-05-04 20:22:00" - }, - { - "name": "psr/log", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", - "shasum": "" - }, - "type": "library", - "autoload": { - "psr-0": { - "Psr\\Log\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2012-12-21 11:40:51" - }, - { - "name": "psy/psysh", - "version": "v0.6.1", - "source": { - "type": "git", - "url": "https://github.com/bobthecow/psysh.git", - "reference": "0f04df0b23663799a8941fae13cd8e6299bde3ed" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/0f04df0b23663799a8941fae13cd8e6299bde3ed", - "reference": "0f04df0b23663799a8941fae13cd8e6299bde3ed", - "shasum": "" - }, - "require": { - "dnoegel/php-xdg-base-dir": "0.1", - "jakub-onderka/php-console-highlighter": "0.3.*", - "nikic/php-parser": "^1.2.1|~2.0", - "php": ">=5.3.9", - "symfony/console": "~2.3.10|^2.4.2|~3.0", - "symfony/var-dumper": "~2.7|~3.0" - }, - "require-dev": { - "fabpot/php-cs-fixer": "~1.5", - "phpunit/phpunit": "~3.7|~4.0|~5.0", - "squizlabs/php_codesniffer": "~2.0", - "symfony/finder": "~2.1|~3.0" - }, - "suggest": { - "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", - "ext-pdo-sqlite": "The doc command requires SQLite to work.", - "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", - "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." - }, - "bin": [ - "bin/psysh" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-develop": "0.7.x-dev" - } - }, - "autoload": { - "files": [ - "src/Psy/functions.php" - ], - "psr-4": { - "Psy\\": "src/Psy/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Justin Hileman", - "email": "justin@justinhileman.info", - "homepage": "http://justinhileman.com" - } - ], - "description": "An interactive shell for modern PHP.", - "homepage": "http://psysh.org", - "keywords": [ - "REPL", - "console", - "interactive", - "shell" - ], - "time": "2015-11-12 16:18:56" - }, - { - "name": "swiftmailer/swiftmailer", - "version": "v5.4.1", - "source": { - "type": "git", - "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/0697e6aa65c83edf97bb0f23d8763f94e3f11421", - "reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "mockery/mockery": "~0.9.1,<0.9.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.4-dev" - } - }, - "autoload": { - "files": [ - "lib/swift_required.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Chris Corbyn" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "Swiftmailer, free feature-rich PHP mailer", - "homepage": "http://swiftmailer.org", - "keywords": [ - "email", - "mail", - "mailer" - ], - "time": "2015-06-06 14:19:39" - }, - { - "name": "symfony/console", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "16bb1cb86df43c90931df65f529e7ebd79636750" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/16bb1cb86df43c90931df65f529e7ebd79636750", - "reference": "16bb1cb86df43c90931df65f529e7ebd79636750", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/event-dispatcher": "~2.1", - "symfony/process": "~2.1" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/process": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Console Component", - "homepage": "https://symfony.com", - "time": "2015-11-18 09:54:26" - }, - { - "name": "symfony/css-selector", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/css-selector.git", - "reference": "abb47717fb88aebd9437da2fc8bb01a50a36679f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/abb47717fb88aebd9437da2fc8bb01a50a36679f", - "reference": "abb47717fb88aebd9437da2fc8bb01a50a36679f", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\CssSelector\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jean-François Simon", - "email": "jeanfrancois.simon@sensiolabs.com" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony CssSelector Component", - "homepage": "https://symfony.com", - "time": "2015-10-30 20:10:21" - }, - { - "name": "symfony/debug", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/debug.git", - "reference": "0dbc119596f4afc82d9b2eb2a7e6a4af1ee763fa" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/0dbc119596f4afc82d9b2eb2a7e6a4af1ee763fa", - "reference": "0dbc119596f4afc82d9b2eb2a7e6a4af1ee763fa", - "shasum": "" - }, - "require": { - "php": ">=5.3.9", - "psr/log": "~1.0" - }, - "conflict": { - "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" - }, - "require-dev": { - "symfony/class-loader": "~2.2", - "symfony/http-kernel": "~2.3.24|~2.5.9|~2.6,>=2.6.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Debug\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Debug Component", - "homepage": "https://symfony.com", - "time": "2015-10-30 20:10:21" - }, - { - "name": "symfony/dom-crawler", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/dom-crawler.git", - "reference": "b33593cbfe1d81b50d48353f338aca76a08658d8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/b33593cbfe1d81b50d48353f338aca76a08658d8", - "reference": "b33593cbfe1d81b50d48353f338aca76a08658d8", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/css-selector": "~2.3" - }, - "suggest": { - "symfony/css-selector": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\DomCrawler\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony DomCrawler Component", - "homepage": "https://symfony.com", - "time": "2015-11-02 20:20:53" - }, - { - "name": "symfony/event-dispatcher", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "7e2f9c31645680026c2372edf66f863fc7757af5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7e2f9c31645680026c2372edf66f863fc7757af5", - "reference": "7e2f9c31645680026c2372edf66f863fc7757af5", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.6", - "symfony/expression-language": "~2.6", - "symfony/stopwatch": "~2.3" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony EventDispatcher Component", - "homepage": "https://symfony.com", - "time": "2015-10-30 20:10:21" - }, - { - "name": "symfony/finder", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "a06a0c0ff7db3736a50d530c908cca547bf13da9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/a06a0c0ff7db3736a50d530c908cca547bf13da9", - "reference": "a06a0c0ff7db3736a50d530c908cca547bf13da9", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Finder\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Finder Component", - "homepage": "https://symfony.com", - "time": "2015-10-30 20:10:21" - }, - { - "name": "symfony/http-foundation", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/http-foundation.git", - "reference": "e83a3d105ddaf5a113e803c904fdec552d1f1c35" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e83a3d105ddaf5a113e803c904fdec552d1f1c35", - "reference": "e83a3d105ddaf5a113e803c904fdec552d1f1c35", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/expression-language": "~2.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\HttpFoundation\\": "" - }, - "classmap": [ - "Resources/stubs" - ], - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony HttpFoundation Component", - "homepage": "https://symfony.com", - "time": "2015-11-20 17:41:18" - }, - { - "name": "symfony/http-kernel", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/http-kernel.git", - "reference": "5570de31e8fbc03777a8c61eb24f9b626e5e5941" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/5570de31e8fbc03777a8c61eb24f9b626e5e5941", - "reference": "5570de31e8fbc03777a8c61eb24f9b626e5e5941", - "shasum": "" - }, - "require": { - "php": ">=5.3.9", - "psr/log": "~1.0", - "symfony/debug": "~2.6,>=2.6.2", - "symfony/event-dispatcher": "~2.6,>=2.6.7", - "symfony/http-foundation": "~2.5,>=2.5.4" - }, - "conflict": { - "symfony/config": "<2.7" - }, - "require-dev": { - "symfony/browser-kit": "~2.3", - "symfony/class-loader": "~2.1", - "symfony/config": "~2.7", - "symfony/console": "~2.3", - "symfony/css-selector": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.2", - "symfony/dom-crawler": "~2.0,>=2.0.5", - "symfony/expression-language": "~2.4", - "symfony/finder": "~2.0,>=2.0.5", - "symfony/process": "~2.0,>=2.0.5", - "symfony/routing": "~2.2", - "symfony/stopwatch": "~2.3", - "symfony/templating": "~2.2", - "symfony/translation": "~2.0,>=2.0.5", - "symfony/var-dumper": "~2.6" - }, - "suggest": { - "symfony/browser-kit": "", - "symfony/class-loader": "", - "symfony/config": "", - "symfony/console": "", - "symfony/dependency-injection": "", - "symfony/finder": "", - "symfony/var-dumper": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\HttpKernel\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony HttpKernel Component", - "homepage": "https://symfony.com", - "time": "2015-11-23 11:57:49" - }, - { - "name": "symfony/process", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "f6290983c8725d0afa29bdc3e5295879de3e58f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/f6290983c8725d0afa29bdc3e5295879de3e58f5", - "reference": "f6290983c8725d0afa29bdc3e5295879de3e58f5", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Process\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Process Component", - "homepage": "https://symfony.com", - "time": "2015-11-19 16:11:24" - }, - { - "name": "symfony/psr-http-message-bridge", - "version": "v0.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/psr-http-message-bridge.git", - "reference": "dc7e308e1dc2898a46776e2221a643cb08315453" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/dc7e308e1dc2898a46776e2221a643cb08315453", - "reference": "dc7e308e1dc2898a46776e2221a643cb08315453", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "psr/http-message": "~1.0", - "symfony/http-foundation": "~2.3|~3.0" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7|~3.0" - }, - "suggest": { - "zendframework/zend-diactoros": "To use the Zend Diactoros factory" - }, - "type": "symfony-bridge", - "autoload": { - "psr-4": { - "Symfony\\Bridge\\PsrHttpMessage\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "PSR HTTP message bridge", - "homepage": "http://symfony.com", - "keywords": [ - "http", - "http-message", - "psr-7" - ], - "time": "2015-05-29 17:57:12" - }, - { - "name": "symfony/routing", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/routing.git", - "reference": "7450f6196711b124fb8b04a12286d01a0401ddfe" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/7450f6196711b124fb8b04a12286d01a0401ddfe", - "reference": "7450f6196711b124fb8b04a12286d01a0401ddfe", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "conflict": { - "symfony/config": "<2.7" - }, - "require-dev": { - "doctrine/annotations": "~1.0", - "doctrine/common": "~2.2", - "psr/log": "~1.0", - "symfony/config": "~2.7", - "symfony/expression-language": "~2.4", - "symfony/http-foundation": "~2.3", - "symfony/yaml": "~2.0,>=2.0.5" - }, - "suggest": { - "doctrine/annotations": "For using the annotation loader", - "symfony/config": "For using the all-in-one router or any loader", - "symfony/expression-language": "For using expression matching", - "symfony/yaml": "For using the YAML loader" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Routing\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Routing Component", - "homepage": "https://symfony.com", - "keywords": [ - "router", - "routing", - "uri", - "url" - ], - "time": "2015-11-18 13:41:01" - }, - { - "name": "symfony/translation", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "e4ecb9c3ba1304eaf24de15c2d7a428101c1982f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/e4ecb9c3ba1304eaf24de15c2d7a428101c1982f", - "reference": "e4ecb9c3ba1304eaf24de15c2d7a428101c1982f", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "conflict": { - "symfony/config": "<2.7" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.7", - "symfony/intl": "~2.4", - "symfony/yaml": "~2.2" - }, - "suggest": { - "psr/log": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Translation Component", - "homepage": "https://symfony.com", - "time": "2015-11-18 13:41:01" - }, - { - "name": "symfony/var-dumper", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/var-dumper.git", - "reference": "72bcb27411780eaee9469729aace73c0d46fb2b8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/72bcb27411780eaee9469729aace73c0d46fb2b8", - "reference": "72bcb27411780eaee9469729aace73c0d46fb2b8", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "suggest": { - "ext-symfony_debug": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "files": [ - "Resources/functions/dump.php" - ], - "psr-4": { - "Symfony\\Component\\VarDumper\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony mechanism for exploring and dumping PHP variables", - "homepage": "https://symfony.com", - "keywords": [ - "debug", - "dump" - ], - "time": "2015-11-18 13:41:01" - }, - { - "name": "symfony/yaml", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "4cfcd7a9fceba662b3c036b7d9a91f6197af046c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/4cfcd7a9fceba662b3c036b7d9a91f6197af046c", - "reference": "4cfcd7a9fceba662b3c036b7d9a91f6197af046c", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Yaml Component", - "homepage": "https://symfony.com", - "time": "2015-11-18 13:41:01" - }, - { - "name": "vlucas/phpdotenv", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa", - "reference": "0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Dotenv": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD" - ], - "authors": [ - { - "name": "Vance Lucas", - "email": "vance@vancelucas.com", - "homepage": "http://www.vancelucas.com" - } - ], - "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", - "homepage": "http://github.com/vlucas/phpdotenv", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "time": "2015-05-30 15:59:26" - }, - { - "name": "zendframework/zend-code", - "version": "2.5.3", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-code.git", - "reference": "2a69bd42bddf9a955f3747af9e06b6d26e7c41ba" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-code/zipball/2a69bd42bddf9a955f3747af9e06b6d26e7c41ba", - "reference": "2a69bd42bddf9a955f3747af9e06b6d26e7c41ba", - "shasum": "" - }, - "require": { - "php": ">=5.5", - "zendframework/zend-eventmanager": "~2.5" - }, - "require-dev": { - "doctrine/common": ">=2.1", - "fabpot/php-cs-fixer": "1.7.*", - "phpunit/phpunit": "~4.0", - "zendframework/zend-stdlib": "~2.5" - }, - "suggest": { - "doctrine/common": "Doctrine\\Common >=2.1 for annotation features", - "zendframework/zend-stdlib": "Zend\\Stdlib component" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.5-dev", - "dev-develop": "2.6-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\Code\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "description": "provides facilities to generate arbitrary code using an object oriented interface", - "homepage": "https://github.com/zendframework/zend-code", - "keywords": [ - "code", - "zf2" - ], - "time": "2015-11-18 18:22:37" - }, - { - "name": "zendframework/zend-diactoros", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-diactoros.git", - "reference": "edfda00b9831630c19c411f85f50a47bb66af457" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/edfda00b9831630c19c411f85f50a47bb66af457", - "reference": "edfda00b9831630c19c411f85f50a47bb66af457", - "shasum": "" - }, - "require": { - "php": ">=5.4", - "psr/http-message": "~1.0" - }, - "provide": { - "psr/http-message-implementation": "~1.0.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.6", - "squizlabs/php_codesniffer": "^2.3.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2-dev", - "dev-develop": "1.3-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\Diactoros\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "description": "PSR HTTP Message implementations", - "homepage": "https://github.com/zendframework/zend-diactoros", - "keywords": [ - "http", - "psr", - "psr-7" - ], - "time": "2015-11-24 19:16:22" - }, - { - "name": "zendframework/zend-eventmanager", - "version": "2.5.2", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-eventmanager.git", - "reference": "135af03d07fd048c322259aab6611d2be290475c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-eventmanager/zipball/135af03d07fd048c322259aab6611d2be290475c", - "reference": "135af03d07fd048c322259aab6611d2be290475c", - "shasum": "" - }, - "require": { - "php": ">=5.5", - "zendframework/zend-stdlib": "~2.5" - }, - "require-dev": { - "fabpot/php-cs-fixer": "1.7.*", - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.5-dev", - "dev-develop": "2.6-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\EventManager\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "homepage": "https://github.com/zendframework/zend-eventmanager", - "keywords": [ - "eventmanager", - "zf2" - ], - "time": "2015-07-16 19:00:49" - }, - { - "name": "zendframework/zend-hydrator", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-hydrator.git", - "reference": "f3ed8b833355140350bbed98d8a7b8b66875903f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-hydrator/zipball/f3ed8b833355140350bbed98d8a7b8b66875903f", - "reference": "f3ed8b833355140350bbed98d8a7b8b66875903f", - "shasum": "" - }, - "require": { - "php": ">=5.5", - "zendframework/zend-stdlib": "^2.5.1" - }, - "require-dev": { - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "^2.0@dev", - "zendframework/zend-eventmanager": "^2.5.1", - "zendframework/zend-filter": "^2.5.1", - "zendframework/zend-inputfilter": "^2.5.1", - "zendframework/zend-serializer": "^2.5.1", - "zendframework/zend-servicemanager": "^2.5.1" - }, - "suggest": { - "zendframework/zend-eventmanager": "^2.5.1, to support aggregate hydrator usage", - "zendframework/zend-filter": "^2.5.1, to support naming strategy hydrator usage", - "zendframework/zend-serializer": "^2.5.1, to use the SerializableStrategy", - "zendframework/zend-servicemanager": "^2.5.1, to support hydrator plugin manager usage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev", - "dev-develop": "1.1-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\Hydrator\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "homepage": "https://github.com/zendframework/zend-hydrator", - "keywords": [ - "hydrator", - "zf2" - ], - "time": "2015-09-17 14:06:43" - }, - { - "name": "zendframework/zend-stdlib", - "version": "2.7.4", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-stdlib.git", - "reference": "cae029346a33663b998507f94962eb27de060683" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-stdlib/zipball/cae029346a33663b998507f94962eb27de060683", - "reference": "cae029346a33663b998507f94962eb27de060683", - "shasum": "" - }, - "require": { - "php": ">=5.5", - "zendframework/zend-hydrator": "~1.0" - }, - "require-dev": { - "athletic/athletic": "~0.1", - "fabpot/php-cs-fixer": "1.7.*", - "phpunit/phpunit": "~4.0", - "zendframework/zend-config": "~2.5", - "zendframework/zend-eventmanager": "~2.5", - "zendframework/zend-filter": "~2.5", - "zendframework/zend-inputfilter": "~2.5", - "zendframework/zend-serializer": "~2.5", - "zendframework/zend-servicemanager": "~2.5" - }, - "suggest": { - "zendframework/zend-eventmanager": "To support aggregate hydrator usage", - "zendframework/zend-filter": "To support naming strategy hydrator usage", - "zendframework/zend-serializer": "Zend\\Serializer component", - "zendframework/zend-servicemanager": "To support hydrator plugin manager usage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev", - "dev-develop": "2.8-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\Stdlib\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "homepage": "https://github.com/zendframework/zend-stdlib", - "keywords": [ - "stdlib", - "zf2" - ], - "time": "2015-10-15 15:57:32" - } - ], - "packages-dev": [ - { - "name": "fabpot/php-cs-fixer", - "version": "v1.10.2", - "source": { - "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "e8b3c4e41dc1484210fdc45363c41af6c2d56f20" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/e8b3c4e41dc1484210fdc45363c41af6c2d56f20", - "reference": "e8b3c4e41dc1484210fdc45363c41af6c2d56f20", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.6", - "sebastian/diff": "~1.1", - "symfony/console": "~2.3", - "symfony/event-dispatcher": "~2.1", - "symfony/filesystem": "~2.1", - "symfony/finder": "~2.1", - "symfony/process": "~2.3", - "symfony/stopwatch": "~2.5" - }, - "require-dev": { - "satooshi/php-coveralls": "0.7.*@dev" - }, - "bin": [ - "php-cs-fixer" - ], - "type": "application", - "autoload": { - "psr-4": { - "Symfony\\CS\\": "Symfony/CS/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "A tool to automatically fix PHP code style", - "time": "2015-10-21 19:19:43" - }, - { - "name": "laravel/laravel", - "version": "v5.1.11", - "source": { - "type": "git", - "url": "https://github.com/laravel/laravel.git", - "reference": "716e65268ae088e5bd73e505acf9695c127aff66" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/laravel/zipball/716e65268ae088e5bd73e505acf9695c127aff66", - "reference": "716e65268ae088e5bd73e505acf9695c127aff66", - "shasum": "" - }, - "require": { - "laravel/framework": "5.1.*", - "php": ">=5.5.9" - }, - "require-dev": { - "fzaninotto/faker": "~1.4", - "mockery/mockery": "0.9.*", - "phpspec/phpspec": "~2.1", - "phpunit/phpunit": "~4.0" - }, - "type": "project", - "autoload": { - "classmap": [ - "database" - ], - "psr-4": { - "App\\": "app/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "The Laravel Framework.", - "keywords": [ - "framework", - "laravel" - ], - "time": "2015-08-30 11:31:33" - }, - { - "name": "sebastian/diff", - "version": "1.3.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "http://www.github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], - "time": "2015-02-22 15:13:53" - }, - { - "name": "symfony/filesystem", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "8e173509d7fdbbba3cf34d6d072f2073c0210c1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/8e173509d7fdbbba3cf34d6d072f2073c0210c1d", - "reference": "8e173509d7fdbbba3cf34d6d072f2073c0210c1d", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Filesystem Component", - "homepage": "https://symfony.com", - "time": "2015-11-18 13:41:01" - }, - { - "name": "symfony/stopwatch", - "version": "v2.7.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "9fa59908b0c5575980a1623723a5b5cb38e0a04a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/9fa59908b0c5575980a1623723a5b5cb38e0a04a", - "reference": "9fa59908b0c5575980a1623723a5b5cb38e0a04a", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Stopwatch Component", - "homepage": "https://symfony.com", - "time": "2015-10-30 20:10:21" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": { - "nilportugues/json-api": 20 - }, - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], - "platform-dev": [] -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/CreateResource.php b/src/NilPortugues/Laravel5/JsonApi/Actions/CreateResource.php deleted file mode 100644 index 4026fb4..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/CreateResource.php +++ /dev/null @@ -1,121 +0,0 @@ - - * Date: 12/2/15 - * Time: 9:37 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions; - -use Exception; -use Illuminate\Database\Eloquent\Builder; -use NilPortugues\Api\JsonApi\Server\Data\DataException; -use NilPortugues\Api\JsonApi\Server\Data\DataObject; -use NilPortugues\Api\JsonApi\Server\Errors\Error; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\RequestTrait; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\ResponseTrait; -use NilPortugues\Serializer\Serializer; - -/** - * Class CreateResource. - */ -class CreateResource -{ - use RequestTrait; - use ResponseTrait; - - /** - * @var ErrorBag - */ - private $errorBag; - - /** - * @var \NilPortugues\Serializer\Serializer - */ - private $serializer; - - /** - * @param Serializer $serializer - */ - public function __construct(Serializer $serializer) - { - $this->serializer = $serializer; - $this->errorBag = new ErrorBag(); - } - - /** - * @param array $data - * @param Builder $query - * - * @return \Symfony\Component\HttpFoundation\Response - */ - public function get(array $data, Builder $query) - { - $errorBag = new ErrorBag(); - - try { - $className = get_class($query->getModel()); - DataObject::assertPost($data, $this->serializer, $className, $errorBag); - - $values = DataObject::getAttributes($data, $this->serializer); - $model = $this->createResource($data, $query, $values); - - $response = $this->resourceCreated($this->serializer->serialize($model)); - } catch (Exception $e) { - $response = $this->getErrorResponse($e, $errorBag); - } - - return $response; - } - - /** - * @param array $data - * @param Builder $query - * @param $values - * - * @return \Illuminate\Database\Eloquent\Model - */ - private function createResource(array $data, Builder $query, $values) - { - $model = $query->getModel(); - foreach ($values as $attribute => $value) { - $model->$attribute = $value; - } - - if (!empty($data['id'])) { - $idKey = $model->getKeyName(); - $model->$idKey = $data['id']; - } - $model->save(); - - return $model; - } - - /** - * @param $e - * @param $errorBag - * - * @return \Symfony\Component\HttpFoundation\Response - */ - private function getErrorResponse($e, $errorBag) - { - switch (get_class($e)) { - case DataException::class: - $response = $this->unprocessableEntity($errorBag); - break; - - default: - $response = $this->errorResponse( - new ErrorBag([new Error('Bad Request', 'Request could not be served.')]) - ); - - return $response; - } - - return $response; - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/DeleteResource.php b/src/NilPortugues/Laravel5/JsonApi/Actions/DeleteResource.php deleted file mode 100644 index 49c3648..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/DeleteResource.php +++ /dev/null @@ -1,71 +0,0 @@ - - * Date: 12/2/15 - * Time: 9:38 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions; - -use Exception; -use Illuminate\Database\Eloquent\Builder; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use NilPortugues\Api\JsonApi\Server\Errors\NotFoundError; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\RequestTrait; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\ResponseTrait; -use NilPortugues\Serializer\Serializer; - -/** - * Class DeleteResource. - */ -class DeleteResource -{ - use RequestTrait; - use ResponseTrait; - - /** - * @var ErrorBag - */ - private $errorBag; - - /** - * @var \NilPortugues\Serializer\Serializer - */ - private $serializer; - - /** - * @param Serializer $serializer - */ - public function __construct(Serializer $serializer) - { - $this->serializer = $serializer; - $this->errorBag = new ErrorBag(); - } - - /** - * @param $id - * @param Builder $query - * - * @return mixed - */ - public function get($id, Builder $query) - { - try { - $idKey = $query->getModel()->getKeyName(); - $model = $query->getModel()->query()->where($idKey, '=', $id); - $model->delete(); - - return $this->resourceDeleted(); - } catch (Exception $e) { - $className = get_class($query->getModel()); - $mapping = $this->serializer->getTransformer()->getMappingByClassName($className); - - $errors = new ErrorBag([new NotFoundError($mapping->getClassAlias(), $id)]); - - return $this->resourceNotFound($errors); - } - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/GetResource.php b/src/NilPortugues/Laravel5/JsonApi/Actions/GetResource.php deleted file mode 100644 index 3e99b71..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/GetResource.php +++ /dev/null @@ -1,108 +0,0 @@ - - * Date: 12/2/15 - * Time: 9:37 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions; - -use Exception; -use Illuminate\Database\Eloquent\Builder; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use NilPortugues\Api\JsonApi\Server\Errors\NotFoundError; -use NilPortugues\Api\JsonApi\Server\Query\QueryException; -use NilPortugues\Api\JsonApi\Server\Query\QueryObject; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\RequestTrait; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\ResponseTrait; -use NilPortugues\Serializer\Serializer; - -/** - * Class GetResource. - */ -class GetResource -{ - use RequestTrait; - use ResponseTrait; - - /** - * @var \NilPortugues\Api\JsonApi\Server\Errors\ErrorBag - */ - private $errorBag; - - /** - * @var \NilPortugues\Serializer\Serializer - */ - private $serializer; - - /** - * @param Serializer $serializer - */ - public function __construct(Serializer $serializer) - { - $this->serializer = $serializer; - $this->errorBag = new ErrorBag(); - } - - /** - * @param $id - * @param Builder $query - * - * @return \Symfony\Component\HttpFoundation\Response - */ - public function get($id, Builder $query) - { - try { - QueryObject::assert($this->serializer, $this->errorBag); - $model = $this->getResource($id, $query); - $response = $this->response($this->serializer->serialize($model, $this->apiRequest())); - } catch (Exception $e) { - $response = $this->getErrorResponse($id, $query, $e); - } - - return $response; - } - - /** - * @param $id - * @param Builder $query - * - * @return \Illuminate\Database\Eloquent\Model|null|static - */ - private function getResource($id, Builder $query) - { - $idKey = $query->getModel()->getKeyName(); - $model = $query->getModel()->query()->where($idKey, '=', $id)->first(); - - return $model; - } - - /** - * @param $id - * @param Builder $query - * @param Exception $e - * - * @return \Symfony\Component\HttpFoundation\Response - */ - private function getErrorResponse($id, Builder $query, Exception $e) - { - switch (get_class($e)) { - case QueryException::class: - $response = $this->errorResponse($this->errorBag); - break; - - default: - $className = get_class($query->getModel()); - $mapping = $this->serializer->getTransformer()->getMappingByClassName($className); - - $response = $this->resourceNotFound( - new ErrorBag([new NotFoundError($mapping->getClassAlias(), $id)]) - ); - } - - return $response; - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/ListResource.php b/src/NilPortugues/Laravel5/JsonApi/Actions/ListResource.php deleted file mode 100644 index 09e2234..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/ListResource.php +++ /dev/null @@ -1,186 +0,0 @@ - - * Date: 11/28/15 - * Time: 8:03 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions; - -use Exception; -use Illuminate\Database\Eloquent\Builder; -use NilPortugues\Api\JsonApi\Http\PaginatedResource; -use NilPortugues\Api\JsonApi\Server\Errors\Error; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use NilPortugues\Api\JsonApi\Server\Errors\OufOfBoundsError; -use NilPortugues\Api\JsonApi\Server\Query\QueryException; -use NilPortugues\Api\JsonApi\Server\Query\QueryObject; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\PaginationTrait; -use NilPortugues\Laravel5\JsonApi\Eloquent\EloquentHelper; -use NilPortugues\Serializer\Serializer; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\RequestTrait; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\ResponseTrait; - -/** - * Class ListResource. - */ -class ListResource -{ - use RequestTrait; - use PaginationTrait; - use ResponseTrait; - - /** - * @var ErrorBag - */ - private $errorBag; - /** - * @var int - */ - private $pageNumber; - /** - * @var int - */ - private $pageSize; - - /** - * @var \NilPortugues\Serializer\Serializer - */ - private $serializer; - - /** - * @param Serializer $serializer - */ - public function __construct(Serializer $serializer) - { - $this->serializer = $serializer; - $this->errorBag = new ErrorBag(); - $this->pageNumber = $this->apiRequest()->getPageNumber(); - $this->pageSize = $this->apiRequest()->getPageSize(); - } - - /** - * @param Builder $query - * @param $namedRoute - * @param array $namedRouteParams - * - * @return \Symfony\Component\HttpFoundation\Response - */ - public function get(Builder $query, $namedRoute, array $namedRouteParams = []) - { - $baseQuery = clone $query; - - try { - QueryObject::assert($this->serializer, $this->errorBag); - $totalAmount = $this->getTotalAmount($baseQuery); - - if ($totalAmount > 0 && $this->pageNumber > ceil($totalAmount / $this->pageSize)) { - return $this->resourceNotFound( - new ErrorBag([new OufOfBoundsError($this->pageNumber, $this->pageSize)]) - ); - } - - $paginatedResource = $this->getPaginatedResource( - $this->serializer, - $namedRoute, - $namedRouteParams, - $totalAmount, - $baseQuery - ); - - $response = $this->response($paginatedResource); - } catch (Exception $e) { - $response = $this->getErrorResponse($e); - } - - return $response; - } - - /** - * @param Builder $baseQuery - * - * @return mixed - */ - private function getTotalAmount(Builder $baseQuery) - { - $totalAmountQuery = clone $baseQuery; - $idKey = $totalAmountQuery->getModel()->getKeyName(); - - return $totalAmountQuery->get([$idKey])->count(); - } - - /** - * @param Serializer $serializer - * @param string $namedRoute - * @param array $namedRouteParams - * @param int $totalAmount - * @param Builder $baseQuery - * - * @return PaginatedResource - */ - private function getPaginatedResource( - Serializer $serializer, - $namedRoute, - array $namedRouteParams, - $totalAmount, - Builder $baseQuery - ) { - $links = $this->pagePaginationLinks( - $namedRoute, - $namedRouteParams, - $this->pageNumber, - $this->pageSize, - $totalAmount - ); - - $paginatedResource = new PaginatedResource( - $serializer->serialize($this->getPaginatedResults($serializer, $baseQuery)), - $this->pageNumber, - $this->pageSize, - $totalAmount, - $links - ); - - return $paginatedResource; - } - - /** - * @param Serializer $serializer - * @param Builder $baseQuery - * - * @return \Illuminate\Database\Eloquent\Collection - */ - private function getPaginatedResults(Serializer $serializer, Builder $baseQuery) - { - $pageQuery = clone $baseQuery; - $model = EloquentHelper::paginate($serializer, $pageQuery)->get(); - - return $model; - } - - /** - * @param Exception $e - * - * @return \Symfony\Component\HttpFoundation\Response - */ - private function getErrorResponse(Exception $e) - { - switch (get_class($e)) { - case QueryException::class: - $response = $this->errorResponse($this->errorBag); - break; - - default: - $response = $this->errorResponse( - new ErrorBag([new Error('Bad Request', 'Request could not be served.')]) - ); - - return $response; - } - - return $response; - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/PatchResource.php b/src/NilPortugues/Laravel5/JsonApi/Actions/PatchResource.php deleted file mode 100644 index bbe8f82..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/PatchResource.php +++ /dev/null @@ -1,130 +0,0 @@ - - * Date: 12/2/15 - * Time: 9:38 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions; - -use Exception; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\Model; -use NilPortugues\Api\JsonApi\Server\Data\DataException; -use NilPortugues\Api\JsonApi\Server\Data\DataObject; -use NilPortugues\Api\JsonApi\Server\Errors\Error; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use NilPortugues\Api\JsonApi\Server\Errors\NotFoundError; -use NilPortugues\Serializer\Serializer; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\RequestTrait; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\ResponseTrait; - -/** - * Class PatchResource. - */ -class PatchResource -{ - use RequestTrait; - use ResponseTrait; - - /** - * @var ErrorBag - */ - private $errorBag; - - /** - * @var \NilPortugues\Serializer\Serializer - */ - private $serializer; - - /** - * @param Serializer $serializer - */ - public function __construct(Serializer $serializer) - { - $this->serializer = $serializer; - $this->errorBag = new ErrorBag(); - } - - /** - * @param $id - * @param array $data - * @param Builder $query - * - * @return \Symfony\Component\HttpFoundation\Response - */ - public function get($id, array $data, Builder $query) - { - try { - $className = get_class($query->getModel()); - DataObject::assertPatch($data, $this->serializer, $className, $this->errorBag); - $model = $this->getResource($id, $query); - - if (empty($model)) { - $mapping = $this->serializer->getTransformer()->getMappingByClassName($className); - - return $this->resourceNotFound(new ErrorBag([new NotFoundError($mapping->getClassAlias(), $id)])); - } - - $this->updateResource($data, $model); - $response = $this->resourceUpdated($this->serializer->serialize($model)); - } catch (Exception $e) { - $response = $this->getErrorResponse($e); - } - - return $response; - } - - /** - * @param $id - * @param Builder $query - * - * @return \Illuminate\Database\Eloquent\Model|null - */ - private function getResource($id, Builder $query) - { - $idKey = $query->getModel()->getKeyName(); - $model = $query->getModel()->query()->where($idKey, '=', $id)->first(); - - return $model; - } - - /** - * @param array $data - * @param Model $model - */ - private function updateResource(array $data, Model $model) - { - $values = DataObject::getAttributes($data, $this->serializer); - foreach ($values as $attribute => $value) { - $model->$attribute = $value; - } - $model->update(); - } - - /** - * @param $e - * - * @return \Symfony\Component\HttpFoundation\Response - */ - private function getErrorResponse(Exception $e) - { - switch (get_class($e)) { - case DataException::class: - $response = $this->unprocessableEntity($this->errorBag); - break; - - default: - $response = $this->errorResponse( - new ErrorBag([new Error('Bad Request', 'Request could not be served.')]) - ); - - return $response; - } - - return $response; - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/PutResource.php b/src/NilPortugues/Laravel5/JsonApi/Actions/PutResource.php deleted file mode 100644 index 72875d1..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/PutResource.php +++ /dev/null @@ -1,131 +0,0 @@ - - * Date: 12/2/15 - * Time: 9:38 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions; - -use Exception; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\Model; -use NilPortugues\Api\JsonApi\Server\Data\DataException; -use NilPortugues\Api\JsonApi\Server\Data\DataObject; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use NilPortugues\Api\JsonApi\Server\Errors\Error; -use NilPortugues\Api\JsonApi\Server\Errors\NotFoundError; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\RequestTrait; -use NilPortugues\Laravel5\JsonApi\Actions\Traits\ResponseTrait; -use NilPortugues\Serializer\Serializer; - -/** - * Class PutResource. - */ -class PutResource -{ - use RequestTrait; - use ResponseTrait; - - /** - * @var ErrorBag - */ - private $errorBag; - - /** - * @var \NilPortugues\Serializer\Serializer - */ - private $serializer; - - /** - * @param Serializer $serializer - */ - public function __construct(Serializer $serializer) - { - $this->serializer = $serializer; - $this->errorBag = new ErrorBag(); - } - - /** - * @param $id - * @param array $data - * @param Builder $query - * - * @return \Symfony\Component\HttpFoundation\Response - */ - public function get($id, array $data, Builder $query) - { - try { - $className = get_class($query->getModel()); - DataObject::assertPut($data, $this->serializer, $className, $this->errorBag); - - $model = $this->getResource($id, $query); - - if (empty($model)) { - $mapping = $this->serializer->getTransformer()->getMappingByClassName($className); - - return $this->resourceNotFound(new ErrorBag([new NotFoundError($mapping->getClassAlias(), $id)])); - } - - $this->updateResource($data, $model); - $response = $this->resourceUpdated($this->serializer->serialize($model)); - } catch (Exception $e) { - $response = $this->getErrorResponse($e); - } - - return $response; - } - - /** - * @param $id - * @param Builder $query - * - * @return Model|null - */ - private function getResource($id, Builder $query) - { - $idKey = $query->getModel()->getKeyName(); - $model = $query->getModel()->query()->where($idKey, '=', $id)->first(); - - return $model; - } - - /** - * @param array $data - * @param Model $model - */ - private function updateResource(array $data, Model $model) - { - $values = DataObject::getAttributes($data, $this->serializer); - foreach ($values as $attribute => $value) { - $model->$attribute = $value; - } - $model->update(); - } - - /** - * @param Exception $e - * - * @return \Symfony\Component\HttpFoundation\Response - */ - private function getErrorResponse(Exception $e) - { - switch (get_class($e)) { - case DataException::class: - $response = $this->unprocessableEntity($this->errorBag); - break; - - default: - $response = $this->errorResponse( - new ErrorBag([new Error('Bad Request', 'Request could not be served.')]) - ); - - return $response; - } - - return $response; - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/PaginationTrait.php b/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/PaginationTrait.php deleted file mode 100644 index ec3f03e..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/PaginationTrait.php +++ /dev/null @@ -1,88 +0,0 @@ - - * Date: 11/21/15 - * Time: 11:53 AM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions\Traits; - -use Illuminate\Container\Container; -use NilPortugues\Api\JsonApi\Http\Message\Request; -use NilPortugues\Api\JsonApi\Http\Factory\RequestFactory; - -/** - * Class PaginationTrait. - */ -trait PaginationTrait -{ - /** - * @param string $routeName - * @param array $routeParams - * @param int $pageNumber - * @param int $pageSize - * @param int $totalPages - * - * @return array - */ - protected function pagePaginationLinks($routeName, array $routeParams = [], $pageNumber, $pageSize, $totalPages) - { - $request = RequestFactory::create(); - - $next = $pageNumber + 1; - $previous = $pageNumber - 1; - $last = ceil($totalPages / $pageSize); - - $links = array_filter([ - 'self' => $pageNumber, - 'first' => 1, - 'next' => ($next <= $last) ? $next : null, - 'previous' => ($previous > 1) ? $previous : null, - 'last' => $last, - ]); - - foreach ($links as &$numberedLink) { - $numberedLink = $this->pagePaginatedRoute($request, $routeName, $routeParams, $numberedLink, $pageSize); - } - - return $links; - } - - /** - * Build the URL using Laravel's route facade method. - * - * @param Request $request - * @param string $routeName - * @param array $routeParams - * @param int $pageNumber - * @param int $pageSize - * - * @return string - */ - private function pagePaginatedRoute($request, $routeName, array $routeParams = [], $pageNumber, $pageSize) - { - return urldecode( - Container::getInstance()->make('url')->route( - $routeName, - array_merge( - $routeParams, - [ - 'page' => array_filter( - [ - 'number' => $pageNumber, - 'size' => $pageSize, - ] - ), - 'fields' => $request->getQueryParam('fields'), - 'filter' => $request->getQueryParam('filter'), - 'sort' => $request->getQueryParam('sort'), - 'include' => $request->getQueryParam('include'), - ] - ) - ) - ); - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/RequestTrait.php b/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/RequestTrait.php deleted file mode 100644 index 4a540c1..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/RequestTrait.php +++ /dev/null @@ -1,94 +0,0 @@ - - * Date: 11/14/15 - * Time: 11:46 AM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions\Traits; - -use NilPortugues\Api\JsonApi\Server\Errors\Error; -use NilPortugues\Api\JsonApi\Http\Factory\RequestFactory; -use NilPortugues\Api\JsonApi\Http\Request\Request; -use NilPortugues\Api\JsonApi\Server\Errors\InvalidParameterError; -use NilPortugues\Api\JsonApi\Server\Errors\InvalidParameterMemberError; -use NilPortugues\Laravel5\JsonApi\JsonApiSerializer; - -/** - * Class RequestTrait. - */ -trait RequestTrait -{ - /** - * @var Error[] - */ - private $queryParamErrorBag = []; - - /** - * @return Error[] - */ - protected function getQueryParamsErrors() - { - return $this->queryParamErrorBag; - } - - /** - * @param JsonApiSerializer $serializer - * - * @return bool - */ - protected function hasValidQueryParams($serializer) - { - $apiRequest = $this->apiRequest(); - $this->validateQueryParamsTypes($serializer, $apiRequest->getFields(), 'Fields'); - $this->validateQueryParamsTypes($serializer, $apiRequest->getIncludedRelationships(), 'Include'); - - return empty($this->queryParamErrorBag); - } - - /** - * @return Request - */ - protected function apiRequest() - { - return RequestFactory::create(); - } - - /** - * @param JsonApiSerializer $serializer - * @param array $fields - * @param $paramName - */ - private function validateQueryParamsTypes($serializer, array $fields, $paramName) - { - if (!empty($fields)) { - $transformer = $serializer->getTransformer(); - $validateFields = array_keys($fields); - - foreach ($validateFields as $key => $field) { - $mapping = $transformer->getMappingByAlias($field); - if (null !== $mapping) { - $properties = array_merge( - array_combine($mapping->getProperties(), $mapping->getProperties()), - $mapping->getAliasedProperties() - ); - - $invalidProperties = array_diff($fields[$field], $properties); - foreach ($invalidProperties as $extraField) { - $this->queryParamErrorBag[] = new InvalidParameterMemberError($extraField, $field, strtolower($paramName)); - } - unset($validateFields[$key]); - } - } - - if (false === empty($validateFields)) { - foreach ($validateFields as $field) { - $this->queryParamErrorBag[] = new InvalidParameterError($field, strtolower($paramName)); - } - } - } - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/ResponseTrait.php b/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/ResponseTrait.php deleted file mode 100644 index 521ded5..0000000 --- a/src/NilPortugues/Laravel5/JsonApi/Actions/Traits/ResponseTrait.php +++ /dev/null @@ -1,141 +0,0 @@ - - * Date: 8/18/15 - * Time: 11:19 PM. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace NilPortugues\Laravel5\JsonApi\Actions\Traits; - -use NilPortugues\Api\JsonApi\Http\PaginatedResource; -use NilPortugues\Api\JsonApi\Http\Response\BadRequest; -use NilPortugues\Api\JsonApi\Http\Response\ResourceConflicted; -use NilPortugues\Api\JsonApi\Http\Response\ResourceCreated; -use NilPortugues\Api\JsonApi\Http\Response\ResourceDeleted; -use NilPortugues\Api\JsonApi\Http\Response\ResourceNotFound; -use NilPortugues\Api\JsonApi\Http\Response\ResourceProcessing; -use NilPortugues\Api\JsonApi\Http\Response\ResourceUpdated; -use NilPortugues\Api\JsonApi\Http\Response\Response; -use NilPortugues\Api\JsonApi\Http\Response\UnprocessableEntity; -use NilPortugues\Api\JsonApi\Http\Response\UnsupportedAction; -use NilPortugues\Api\JsonApi\Server\Errors\ErrorBag; -use Psr\Http\Message\ResponseInterface; -use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory; - -trait ResponseTrait -{ - /** - * @param ErrorBag $errorBag - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function errorResponse(ErrorBag $errorBag) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new BadRequest($errorBag))); - } - - /** - * @param ResponseInterface $response - * - * @return ResponseInterface - */ - protected function addHeaders(ResponseInterface $response) - { - return $response; - } - - /** - * @param string $json - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function resourceCreated($json) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new ResourceCreated($json))); - } - - /** - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function resourceDeleted() - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new ResourceDeleted())); - } - - /** - * @param ErrorBag $errorBag - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function resourceNotFound(ErrorBag $errorBag) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new ResourceNotFound($errorBag))); - } - - /** - * @param ErrorBag $errorBag - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function resourceConflicted(ErrorBag $errorBag) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new ResourceConflicted($errorBag))); - } - - /** - * @param string $json - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function resourceProcessing($json) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new ResourceProcessing($json))); - } - - /** - * @param string $json - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function resourceUpdated($json) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new ResourceUpdated($json))); - } - - /** - * @param string|PaginatedResource $json - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function response($json) - { - if ($json instanceof PaginatedResource) { - $json = json_encode($json); - } - - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new Response($json))); - } - - /** - * @param ErrorBag $errorBag - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function unsupportedAction(ErrorBag $errorBag) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new UnsupportedAction($errorBag))); - } - - /** - * @param ErrorBag $errorBag - * - * @return \Symfony\Component\HttpFoundation\Response - */ - protected function unprocessableEntity(ErrorBag $errorBag) - { - return (new HttpFoundationFactory())->createResponse($this->addHeaders(new UnprocessableEntity($errorBag))); - } -} diff --git a/src/NilPortugues/Laravel5/JsonApi/JsonApiSerializer.php b/src/NilPortugues/Laravel5/JsonApi/JsonApiSerializer.php index fff3b25..7f964be 100644 --- a/src/NilPortugues/Laravel5/JsonApi/JsonApiSerializer.php +++ b/src/NilPortugues/Laravel5/JsonApi/JsonApiSerializer.php @@ -11,51 +11,13 @@ namespace NilPortugues\Laravel5\JsonApi; -use NilPortugues\Api\JsonApi\Http\Factory\RequestFactory; -use NilPortugues\Api\JsonApi\JsonApiTransformer; -use NilPortugues\Serializer\DeepCopySerializer; use NilPortugues\Serializer\Drivers\Eloquent\EloquentDriver; /** * Class JsonApiSerializer. */ -class JsonApiSerializer extends DeepCopySerializer +class JsonApiSerializer extends \NilPortugues\Api\JsonApi\JsonApiSerializer { - /** - * @var JsonApiTransformer - */ - protected $serializationStrategy; - - /** - * @param JsonApiTransformer $strategy - */ - public function __construct(JsonApiTransformer $strategy) - { - parent::__construct($strategy); - } - - /** - * @param mixed $value - * - * @return string - */ - public function serialize($value) - { - $mappings = $this->serializationStrategy->getMappings(); - $request = RequestFactory::create(); - - if ($filters = $request->getFields()) { - foreach ($filters as $type => $properties) { - foreach ($mappings as $mapping) { - if ($mapping->getClassAlias() === $type) { - $mapping->setFilterKeys($properties); - } - } - } - } - - return parent::serialize($value); - } /** * Extract the data from an object. * @@ -72,12 +34,4 @@ protected function serializeObject($value) return parent::serializeObject($value); } - - /** - * @return JsonApiTransformer - */ - public function getTransformer() - { - return $this->serializationStrategy; - } } diff --git a/src/NilPortugues/Laravel5/JsonApi/Mapper/MappingFactory.php b/src/NilPortugues/Laravel5/JsonApi/Mapper/MappingFactory.php index b024641..41a4211 100644 --- a/src/NilPortugues/Laravel5/JsonApi/Mapper/MappingFactory.php +++ b/src/NilPortugues/Laravel5/JsonApi/Mapper/MappingFactory.php @@ -46,5 +46,4 @@ protected static function getClassProperties($className) return parent::getClassProperties($className); } - }