Download the PHP package umanit/dev-bundle without Composer
On this page you can find all versions of the php package umanit/dev-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download umanit/dev-bundle
More information about umanit/dev-bundle
Files in umanit/dev-bundle
Download umanit/dev-bundle
More information about umanit/dev-bundle
Files in umanit/dev-bundle
Vendor umanit
Package dev-bundle
Short Description Helper classes and dependencies for usual dev environment
License MIT
Package dev-bundle
Short Description Helper classes and dependencies for usual dev environment
License MIT
Please rate this library. Is it a good library?
Informations about the package dev-bundle
UmanIT - Dev Bundle
This bundle is used for development at UmanIT.
It provides multiple tools and rules to ease development.
PHP Arkitect
Rules for PHP Arkitect:
NotAbuseFinalUsage: Disallow to use final classes if at least one public method of your class is called in another public method of the same class.NotUseConcreteWhenInterfaceExists: Disallow the use of a concrete class inside typehint if an interface exists for tha class.NotUseGenericException: Disallow the use of generic\Exceptionclass.
Usage
Edit your arkitect.php file to include the following:
Foundry
Various tools to ease tests creation:
- A database reseter usable as a Symfony command.
- Some utilities function to ease the creation of entities.
- Possibility to use aliases on Doctrine entities within factories.
- A per-class key/value store accessible via
addToStore/getListFromStore(lists) andsetInStore/getFromStore(scalars), so child factories can accumulate state between persists without declaring static properties (which PHPStan flags on@immutableFoundry factories). The store is reset automatically viaResetInterface.
PHPStan
Rules for PHPStan:
EnsureFunctionBackslashRule: Ensure that some optimizable functions are called with backslash.NoWhereOnQueryBuilderRule: Disallow to usewheremethod onQueryBuilderin favor ofandWhere.
Usage
Edit your phpstan.neon file to include the following:
TestUtils
One static method TestUtils::setId to set the id of an entity by reflection. Useful for tests when your entities do
not expose a setId method.
Usage
In your test:
All versions of dev-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
dama/doctrine-test-bundle Version ^8.3
doctrine/doctrine-bundle Version ^2.8|^3.2
doctrine/orm Version ^2.14|^3.5
mockery/mockery Version ^1.6
nikic/php-parser Version ^5.4
php-parallel-lint/php-parallel-lint Version ^1.4
phparkitect/phparkitect Version ^0.5.4
phpro/grumphp Version ^2.12
phpstan/phpstan Version ^2.0
phpstan/phpstan-deprecation-rules Version ^2.0
phpstan/phpstan-doctrine Version ^2.0
phpstan/phpstan-phpunit Version ^2.0
phpstan/phpstan-symfony Version ^2.0
phpunit/phpunit Version ^11.5
rector/rector Version ^2.4
slevomat/coding-standard Version ^8.19
spatie/phpunit-watcher Version ^1.24
squizlabs/php_codesniffer Version ^4.0
symfony/framework-bundle Version ^6.4|^7.3
umanit/coding-standard Version ^1.0
vincentlanglet/twig-cs-fixer Version ^3.5
zenstruck/foundry Version ^2.10
zenstruck/mailer-test Version ^1.5
zenstruck/messenger-test Version ^1.14
dama/doctrine-test-bundle Version ^8.3
doctrine/doctrine-bundle Version ^2.8|^3.2
doctrine/orm Version ^2.14|^3.5
mockery/mockery Version ^1.6
nikic/php-parser Version ^5.4
php-parallel-lint/php-parallel-lint Version ^1.4
phparkitect/phparkitect Version ^0.5.4
phpro/grumphp Version ^2.12
phpstan/phpstan Version ^2.0
phpstan/phpstan-deprecation-rules Version ^2.0
phpstan/phpstan-doctrine Version ^2.0
phpstan/phpstan-phpunit Version ^2.0
phpstan/phpstan-symfony Version ^2.0
phpunit/phpunit Version ^11.5
rector/rector Version ^2.4
slevomat/coding-standard Version ^8.19
spatie/phpunit-watcher Version ^1.24
squizlabs/php_codesniffer Version ^4.0
symfony/framework-bundle Version ^6.4|^7.3
umanit/coding-standard Version ^1.0
vincentlanglet/twig-cs-fixer Version ^3.5
zenstruck/foundry Version ^2.10
zenstruck/mailer-test Version ^1.5
zenstruck/messenger-test Version ^1.14
The package umanit/dev-bundle contains the following files
Loading the files please wait ...