bean-component / php-thing
Provides a Component for Thing Domain Model.
Installs: 1 543
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Type:php-component
Requires
- php: ^7.2
Requires (Dev)
- php: ^7.2.5
- ext-ctype: *
- ext-iconv: *
- dama/doctrine-test-bundle: ^6.2
- symfony/console: 5.0.*
- symfony/dotenv: 5.0.*
- symfony/flex: ^1.3.1
- symfony/framework-bundle: 5.0.*
- symfony/orm-pack: ^1.0
- symfony/property-access: ^5.0
- symfony/test-pack: ^1.0
- symfony/yaml: 5.0.*
This package is auto-updated.
Last update: 2024-10-29 05:47:39 UTC
README
- Remove vendor folder as well as composer.lock file
composer update
- Copy require-dev from symfony skeleton to package's composer.json's require-dev
composer require symfony/property-access --dev
composer require dama/doctrine-test-bundle --dev
composer req orm --dev
composer req test --dev
How to prepare for Dev
- Copy this block of code and paste it to composer.json under replace:
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
- composer install
- Open .env.test.local paste these lines into it
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
- Change the src folder name in services.yaml to src-symfony
- Add
"App\\": "src-symfony/",
to psr-4 under autoload-dev - Move generated folders and Kernel.php to src-symfony
- Copy the following snippet to doctrine.yaml under mappings configuration
Bean\Tests\Thing:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/tests/Doctrine/Orm'
prefix: 'Bean\Tests\Thing\Doctrine\Orm'
alias: App
Dev Workflow
- Make change to code
php bin/phpunit