Created
April 28, 2016 06:55
-
-
Save Ocramius/9d082058deadcc4a9fade93b9e475d73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Doctrine\DBAL\Driver\PDOSqlite\Driver; | |
use Doctrine\DBAL\Types\Type; | |
use Doctrine\ORM\Configuration; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Mapping\Driver\XmlDriver; | |
use Doctrine\ORM\Proxy\ProxyFactory; | |
use Ramsey\Uuid\Doctrine\UuidType; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$configuration = new Configuration(); | |
// We use annotations for loading the entities in our system | |
$configuration->setMetadataDriverImpl(new XmlDriver([__DIR__ . '/mapping'])); | |
// This is needed for Doctrine to generate files required for lazy-loading | |
$configuration->setProxyDir(__DIR__ . '/data/proxies'); | |
$configuration->setProxyNamespace('DoctrineProxies'); | |
// We are telling Doctrine to always generate files required for lazy-loading. This is a slow operation, | |
// and shouldn't be done in a production environment. | |
$configuration->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_ALWAYS); | |
Type::addType(UuidType::class, UuidType::class); | |
// Finally creating the EntityManager: our entry point for the ORM | |
return EntityManager::create( | |
[ | |
'driverClass' => Driver::class, | |
'path' => __DIR__ . '/data/test-db.sqlite', | |
], | |
$configuration | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper; | |
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; | |
use Symfony\Component\Console\Helper\HelperSet; | |
/* @var $entityManager \Doctrine\ORM\EntityManagerInterface */ | |
$entityManager = require __DIR__ . '/bootstrap.php'; | |
$connectionHelper = new ConnectionHelper($entityManager->getConnection()); | |
return new HelperSet([ | |
'em' => new EntityManagerHelper($entityManager), | |
'db' => $connectionHelper, | |
'connection' => $connectionHelper, | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"doctrine/orm": "^2.5", | |
"ramsey/uuid": "^3.4", | |
"ramsey/uuid-doctrine": "^1.2", | |
"doctrine/migrations": "^1.4" | |
}, | |
"autoload": { | |
"psr-4": { | |
"Authentication\\": "src/Authentication", | |
"Library\\": "src/Library", | |
"Enforcement\\": "src/Enforcement" | |
} | |
}, | |
"config": { | |
"platform": { | |
"php": "5.5.9" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_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": "6abb891b618de717e6cbc48a4e2da752", | |
"content-hash": "53b08c435383ca5875b477b5284f2d9e", | |
"packages": [ | |
{ | |
"name": "doctrine/annotations", | |
"version": "v1.2.7", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/annotations.git", | |
"reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/annotations/zipball/f25c8aab83e0c3e976fd7d19875f198ccf2f7535", | |
"reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535", | |
"shasum": "" | |
}, | |
"require": { | |
"doctrine/lexer": "1.*", | |
"php": ">=5.3.2" | |
}, | |
"require-dev": { | |
"doctrine/cache": "1.*", | |
"phpunit/phpunit": "4.*" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.3.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-0": { | |
"Doctrine\\Common\\Annotations\\": "lib/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Johannes Schmitt", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Docblock Annotations Parser", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"annotations", | |
"docblock", | |
"parser" | |
], | |
"time": "2015-08-31 12:32:49" | |
}, | |
{ | |
"name": "doctrine/cache", | |
"version": "v1.6.0", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/cache.git", | |
"reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/cache/zipball/f8af318d14bdb0eff0336795b428b547bd39ccb6", | |
"reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6", | |
"shasum": "" | |
}, | |
"require": { | |
"php": "~5.5|~7.0" | |
}, | |
"conflict": { | |
"doctrine/common": ">2.2,<2.4" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4.8|~5.0", | |
"predis/predis": "~1.0", | |
"satooshi/php-coveralls": "~0.6" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.6.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Johannes Schmitt", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Caching library offering an object-oriented API for many cache backends", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"cache", | |
"caching" | |
], | |
"time": "2015-12-31 16:37:02" | |
}, | |
{ | |
"name": "doctrine/collections", | |
"version": "v1.3.0", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/collections.git", | |
"reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/collections/zipball/6c1e4eef75f310ea1b3e30945e9f06e652128b8a", | |
"reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.3.2" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4.0" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.2.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-0": { | |
"Doctrine\\Common\\Collections\\": "lib/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Johannes Schmitt", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Collections Abstraction library", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"array", | |
"collections", | |
"iterator" | |
], | |
"time": "2015-04-14 22:21:58" | |
}, | |
{ | |
"name": "doctrine/common", | |
"version": "v2.6.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/common.git", | |
"reference": "a579557bc689580c19fee4e27487a67fe60defc0" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/common/zipball/a579557bc689580c19fee4e27487a67fe60defc0", | |
"reference": "a579557bc689580c19fee4e27487a67fe60defc0", | |
"shasum": "" | |
}, | |
"require": { | |
"doctrine/annotations": "1.*", | |
"doctrine/cache": "1.*", | |
"doctrine/collections": "1.*", | |
"doctrine/inflector": "1.*", | |
"doctrine/lexer": "1.*", | |
"php": "~5.5|~7.0" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4.8|~5.0" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.7.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Doctrine\\Common\\": "lib/Doctrine/Common" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Johannes Schmitt", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Common Library for Doctrine projects", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"annotations", | |
"collections", | |
"eventmanager", | |
"persistence", | |
"spl" | |
], | |
"time": "2015-12-25 13:18:31" | |
}, | |
{ | |
"name": "doctrine/dbal", | |
"version": "v2.5.4", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/dbal.git", | |
"reference": "abbdfd1cff43a7b99d027af3be709bc8fc7d4769" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/dbal/zipball/abbdfd1cff43a7b99d027af3be709bc8fc7d4769", | |
"reference": "abbdfd1cff43a7b99d027af3be709bc8fc7d4769", | |
"shasum": "" | |
}, | |
"require": { | |
"doctrine/common": ">=2.4,<2.7-dev", | |
"php": ">=5.3.2" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "4.*", | |
"symfony/console": "2.*" | |
}, | |
"suggest": { | |
"symfony/console": "For helpful console commands such as SQL execution and import of files." | |
}, | |
"bin": [ | |
"bin/doctrine-dbal" | |
], | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.5.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-0": { | |
"Doctrine\\DBAL\\": "lib/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Database Abstraction Layer", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"database", | |
"dbal", | |
"persistence", | |
"queryobject" | |
], | |
"time": "2016-01-05 22:11:12" | |
}, | |
{ | |
"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": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Johannes Schmitt", | |
"email": "[email protected]" | |
} | |
], | |
"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": "doctrine/instantiator", | |
"version": "1.0.5", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/instantiator.git", | |
"reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", | |
"reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.3,<8.0-DEV" | |
}, | |
"require-dev": { | |
"athletic/athletic": "~0.1.8", | |
"ext-pdo": "*", | |
"ext-phar": "*", | |
"phpunit/phpunit": "~4.0", | |
"squizlabs/php_codesniffer": "~2.0" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.0.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Marco Pivetta", | |
"email": "[email protected]", | |
"homepage": "http://ocramius.github.com/" | |
} | |
], | |
"description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", | |
"homepage": "https://github.com/doctrine/instantiator", | |
"keywords": [ | |
"constructor", | |
"instantiate" | |
], | |
"time": "2015-06-14 21:17:01" | |
}, | |
{ | |
"name": "doctrine/lexer", | |
"version": "v1.0.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/lexer.git", | |
"reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", | |
"reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.3.2" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.0.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-0": { | |
"Doctrine\\Common\\Lexer\\": "lib/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Johannes Schmitt", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"lexer", | |
"parser" | |
], | |
"time": "2014-09-09 13:34:57" | |
}, | |
{ | |
"name": "doctrine/migrations", | |
"version": "1.4.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/migrations.git", | |
"reference": "0d0ff5da10c5d30846da32060bd9e357abf70a05" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/migrations/zipball/0d0ff5da10c5d30846da32060bd9e357abf70a05", | |
"reference": "0d0ff5da10c5d30846da32060bd9e357abf70a05", | |
"shasum": "" | |
}, | |
"require": { | |
"doctrine/dbal": "~2.2", | |
"ocramius/proxy-manager": "^1.0|^2.0", | |
"php": "^5.5|^7.0", | |
"symfony/console": "~2.3|~3.0", | |
"symfony/yaml": "~2.3|~3.0" | |
}, | |
"require-dev": { | |
"doctrine/coding-standard": "dev-master", | |
"doctrine/orm": "2.*", | |
"jdorn/sql-formatter": "~1.1", | |
"johnkary/phpunit-speedtrap": "~1.0@dev", | |
"mockery/mockery": "^0.9.4", | |
"phpunit/phpunit": "~4.7", | |
"satooshi/php-coveralls": "0.6.*" | |
}, | |
"suggest": { | |
"jdorn/sql-formatter": "Allows to generate formatted SQL with the diff command." | |
}, | |
"bin": [ | |
"bin/doctrine-migrations" | |
], | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "v1.5.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Doctrine\\DBAL\\Migrations\\": "lib/Doctrine/DBAL/Migrations" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"LGPL-2.1" | |
], | |
"authors": [ | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Michael Simonson", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Database Schema migrations using Doctrine DBAL", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"database", | |
"migrations" | |
], | |
"time": "2016-03-14 12:29:11" | |
}, | |
{ | |
"name": "doctrine/orm", | |
"version": "v2.5.4", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/doctrine/doctrine2.git", | |
"reference": "bc4ddbfb0114cb33438cc811c9a740d8aa304aab" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/doctrine/doctrine2/zipball/bc4ddbfb0114cb33438cc811c9a740d8aa304aab", | |
"reference": "bc4ddbfb0114cb33438cc811c9a740d8aa304aab", | |
"shasum": "" | |
}, | |
"require": { | |
"doctrine/cache": "~1.4", | |
"doctrine/collections": "~1.2", | |
"doctrine/common": ">=2.5-dev,<2.7-dev", | |
"doctrine/dbal": ">=2.5-dev,<2.6-dev", | |
"doctrine/instantiator": "~1.0.1", | |
"ext-pdo": "*", | |
"php": ">=5.4", | |
"symfony/console": "~2.5|~3.0" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4.0", | |
"symfony/yaml": "~2.3|~3.0" | |
}, | |
"suggest": { | |
"symfony/yaml": "If you want to use YAML Metadata Mapping Driver" | |
}, | |
"bin": [ | |
"bin/doctrine", | |
"bin/doctrine.php" | |
], | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.6.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-0": { | |
"Doctrine\\ORM\\": "lib/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Roman Borschel", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Benjamin Eberlei", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Guilherme Blanco", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jonathan Wage", | |
"email": "[email protected]" | |
} | |
], | |
"description": "Object-Relational-Mapper for PHP", | |
"homepage": "http://www.doctrine-project.org", | |
"keywords": [ | |
"database", | |
"orm" | |
], | |
"time": "2016-01-05 21:34:58" | |
}, | |
{ | |
"name": "ocramius/proxy-manager", | |
"version": "1.0.2", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/Ocramius/ProxyManager.git", | |
"reference": "57e9272ec0e8deccf09421596e0e2252df440e11" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/57e9272ec0e8deccf09421596e0e2252df440e11", | |
"reference": "57e9272ec0e8deccf09421596e0e2252df440e11", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.3.3", | |
"zendframework/zend-code": ">2.2.5,<3.0" | |
}, | |
"require-dev": { | |
"ext-phar": "*", | |
"phpunit/phpunit": "~4.0", | |
"squizlabs/php_codesniffer": "1.5.*" | |
}, | |
"suggest": { | |
"ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects", | |
"zendframework/zend-json": "To have the JsonRpc adapter (Remote Object feature)", | |
"zendframework/zend-soap": "To have the Soap adapter (Remote Object feature)", | |
"zendframework/zend-stdlib": "To use the hydrator proxy", | |
"zendframework/zend-xmlrpc": "To have the XmlRpc adapter (Remote Object feature)" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.0.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-0": { | |
"ProxyManager\\": "src" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Marco Pivetta", | |
"email": "[email protected]", | |
"homepage": "http://ocramius.github.com/" | |
} | |
], | |
"description": "A library providing utilities to generate, instantiate and generally operate with Object Proxies", | |
"homepage": "https://github.com/Ocramius/ProxyManager", | |
"keywords": [ | |
"aop", | |
"lazy loading", | |
"proxy", | |
"proxy pattern", | |
"service proxies" | |
], | |
"time": "2015-08-09 04:28:19" | |
}, | |
{ | |
"name": "paragonie/random_compat", | |
"version": "v2.0.2", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/paragonie/random_compat.git", | |
"reference": "088c04e2f261c33bed6ca5245491cfca69195ccf" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/088c04e2f261c33bed6ca5245491cfca69195ccf", | |
"reference": "088c04e2f261c33bed6ca5245491cfca69195ccf", | |
"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": "[email protected]", | |
"homepage": "https://paragonie.com" | |
} | |
], | |
"description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", | |
"keywords": [ | |
"csprng", | |
"pseudorandom", | |
"random" | |
], | |
"time": "2016-04-03 06:00:07" | |
}, | |
{ | |
"name": "ramsey/uuid", | |
"version": "3.4.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/ramsey/uuid.git", | |
"reference": "b4fe3b7387cb323fd15ad5837cae992422c9fa5c" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/ramsey/uuid/zipball/b4fe3b7387cb323fd15ad5837cae992422c9fa5c", | |
"reference": "b4fe3b7387cb323fd15ad5837cae992422c9fa5c", | |
"shasum": "" | |
}, | |
"require": { | |
"paragonie/random_compat": "^1.0|^2.0", | |
"php": ">=5.4" | |
}, | |
"replace": { | |
"rhumsaa/uuid": "self.version" | |
}, | |
"require-dev": { | |
"apigen/apigen": "^4.1", | |
"codeception/aspect-mock": "1.0.0", | |
"goaop/framework": "1.0.0-alpha.2", | |
"ircmaxell/random-lib": "^1.1", | |
"jakub-onderka/php-parallel-lint": "^0.9.0", | |
"mockery/mockery": "^0.9.4", | |
"moontoast/math": "^1.1", | |
"phpunit/phpunit": "^4.7|^5.0", | |
"satooshi/php-coveralls": "^0.6.1", | |
"squizlabs/php_codesniffer": "^2.3" | |
}, | |
"suggest": { | |
"ext-libsodium": "Provides the PECL libsodium extension for use with the SodiumRandomGenerator", | |
"ext-uuid": "Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator", | |
"ircmaxell/random-lib": "Provides RandomLib for use with the RandomLibAdapter", | |
"moontoast/math": "Provides support for converting UUID to 128-bit integer (in string form).", | |
"ramsey/uuid-console": "A console application for generating UUIDs with ramsey/uuid", | |
"ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "3.x-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Ramsey\\Uuid\\": "src/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Marijn Huizendveld", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Thibaud Fabre", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Ben Ramsey", | |
"email": "[email protected]", | |
"homepage": "https://benramsey.com" | |
} | |
], | |
"description": "Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).", | |
"homepage": "https://github.com/ramsey/uuid", | |
"keywords": [ | |
"guid", | |
"identifier", | |
"uuid" | |
], | |
"time": "2016-04-24 00:30:41" | |
}, | |
{ | |
"name": "ramsey/uuid-doctrine", | |
"version": "1.2.0", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/ramsey/uuid-doctrine.git", | |
"reference": "503c5e0c22b17fe5a53af53124621360e9e07f41" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/ramsey/uuid-doctrine/zipball/503c5e0c22b17fe5a53af53124621360e9e07f41", | |
"reference": "503c5e0c22b17fe5a53af53124621360e9e07f41", | |
"shasum": "" | |
}, | |
"require": { | |
"doctrine/orm": "^2.5", | |
"php": ">=5.4", | |
"ramsey/uuid": "^3.0" | |
}, | |
"require-dev": { | |
"jakub-onderka/php-parallel-lint": "^0.9.0", | |
"phpunit/phpunit": "^4.7|^5.0", | |
"satooshi/php-coveralls": "^0.6.1", | |
"squizlabs/php_codesniffer": "^2.3" | |
}, | |
"type": "library", | |
"autoload": { | |
"psr-4": { | |
"Ramsey\\Uuid\\Doctrine\\": "src/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Marijn Huizendveld", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Ben Ramsey", | |
"email": "[email protected]", | |
"homepage": "http://benramsey.com" | |
} | |
], | |
"description": "Allow the use of a ramsey/uuid UUID as Doctrine field type.", | |
"homepage": "https://github.com/ramsey/uuid-doctrine", | |
"keywords": [ | |
"doctrine", | |
"guid", | |
"identifier", | |
"uuid" | |
], | |
"time": "2016-03-23 17:44:03" | |
}, | |
{ | |
"name": "symfony/console", | |
"version": "v3.0.4", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/symfony/console.git", | |
"reference": "6b1175135bc2a74c08a28d89761272de8beed8cd" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/symfony/console/zipball/6b1175135bc2a74c08a28d89761272de8beed8cd", | |
"reference": "6b1175135bc2a74c08a28d89761272de8beed8cd", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.5.9", | |
"symfony/polyfill-mbstring": "~1.0" | |
}, | |
"require-dev": { | |
"psr/log": "~1.0", | |
"symfony/event-dispatcher": "~2.8|~3.0", | |
"symfony/process": "~2.8|~3.0" | |
}, | |
"suggest": { | |
"psr/log": "For using the console logger", | |
"symfony/event-dispatcher": "", | |
"symfony/process": "" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "3.0-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Symfony\\Component\\Console\\": "" | |
}, | |
"exclude-from-classmap": [ | |
"/Tests/" | |
] | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Fabien Potencier", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Symfony Community", | |
"homepage": "https://symfony.com/contributors" | |
} | |
], | |
"description": "Symfony Console Component", | |
"homepage": "https://symfony.com", | |
"time": "2016-03-16 17:00:50" | |
}, | |
{ | |
"name": "symfony/polyfill-mbstring", | |
"version": "v1.1.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/symfony/polyfill-mbstring.git", | |
"reference": "1289d16209491b584839022f29257ad859b8532d" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", | |
"reference": "1289d16209491b584839022f29257ad859b8532d", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.3.3" | |
}, | |
"suggest": { | |
"ext-mbstring": "For best performance" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.1-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Symfony\\Polyfill\\Mbstring\\": "" | |
}, | |
"files": [ | |
"bootstrap.php" | |
] | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Nicolas Grekas", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Symfony Community", | |
"homepage": "https://symfony.com/contributors" | |
} | |
], | |
"description": "Symfony polyfill for the Mbstring extension", | |
"homepage": "https://symfony.com", | |
"keywords": [ | |
"compatibility", | |
"mbstring", | |
"polyfill", | |
"portable", | |
"shim" | |
], | |
"time": "2016-01-20 09:13:37" | |
}, | |
{ | |
"name": "symfony/yaml", | |
"version": "v3.0.4", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/symfony/yaml.git", | |
"reference": "0047c8366744a16de7516622c5b7355336afae96" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96", | |
"reference": "0047c8366744a16de7516622c5b7355336afae96", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.5.9" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "3.0-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Symfony\\Component\\Yaml\\": "" | |
}, | |
"exclude-from-classmap": [ | |
"/Tests/" | |
] | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Fabien Potencier", | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Symfony Community", | |
"homepage": "https://symfony.com/contributors" | |
} | |
], | |
"description": "Symfony Yaml Component", | |
"homepage": "https://symfony.com", | |
"time": "2016-03-04 07:55:57" | |
}, | |
{ | |
"name": "zendframework/zend-code", | |
"version": "2.6.3", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/zendframework/zend-code.git", | |
"reference": "95033f061b083e16cdee60530ec260d7d628b887" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/95033f061b083e16cdee60530ec260d7d628b887", | |
"reference": "95033f061b083e16cdee60530ec260d7d628b887", | |
"shasum": "" | |
}, | |
"require": { | |
"php": "^5.5 || 7.0.0 - 7.0.4 || ^7.0.6", | |
"zendframework/zend-eventmanager": "^2.6 || ^3.0" | |
}, | |
"require-dev": { | |
"doctrine/annotations": "~1.0", | |
"fabpot/php-cs-fixer": "1.7.*", | |
"phpunit/phpunit": "^4.8.21", | |
"zendframework/zend-stdlib": "^2.7 || ^3.0" | |
}, | |
"suggest": { | |
"doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features", | |
"zendframework/zend-stdlib": "Zend\\Stdlib component" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.6-dev", | |
"dev-develop": "2.7-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": "2016-04-20 17:26:42" | |
}, | |
{ | |
"name": "zendframework/zend-eventmanager", | |
"version": "3.0.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/zendframework/zend-eventmanager.git", | |
"reference": "5c80bdee0e952be112dcec0968bad770082c3a6e" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/zendframework/zend-eventmanager/zipball/5c80bdee0e952be112dcec0968bad770082c3a6e", | |
"reference": "5c80bdee0e952be112dcec0968bad770082c3a6e", | |
"shasum": "" | |
}, | |
"require": { | |
"php": "^5.5 || ^7.0" | |
}, | |
"require-dev": { | |
"athletic/athletic": "^0.1", | |
"container-interop/container-interop": "^1.1.0", | |
"phpunit/phpunit": "~4.0", | |
"squizlabs/php_codesniffer": "^2.0", | |
"zendframework/zend-stdlib": "^2.7.3 || ^3.0" | |
}, | |
"suggest": { | |
"container-interop/container-interop": "^1.1.0, to use the lazy listeners feature", | |
"zendframework/zend-stdlib": "^2.7.3 || ^3.0, to use the FilterChain feature" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "3.0-dev", | |
"dev-develop": "3.1-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Zend\\EventManager\\": "src/" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"BSD-3-Clause" | |
], | |
"description": "Trigger and listen to events within a PHP application", | |
"homepage": "https://github.com/zendframework/zend-eventmanager", | |
"keywords": [ | |
"event", | |
"eventmanager", | |
"events", | |
"zf2" | |
], | |
"time": "2016-02-18 20:53:00" | |
} | |
], | |
"packages-dev": [], | |
"aliases": [], | |
"minimum-stability": "stable", | |
"stability-flags": [], | |
"prefer-stable": false, | |
"prefer-lowest": false, | |
"platform": [], | |
"platform-dev": [], | |
"platform-overrides": { | |
"php": "5.5.9" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<doctrine-migrations | |
xmlns="http://doctrine-project.org/schemas/migrations/configuration" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://doctrine-project.org/schemas/migrations/configuration http://doctrine-project.org/schemas/migrations/configuration.xsd" | |
> | |
<name>Maintainable Doctrine apps tutorial</name> | |
<migrations-namespace>DoctrineMigrations</migrations-namespace> | |
<migrations-directory>./migrations</migrations-directory> | |
</doctrine-migrations> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment