byteshard / schema
byteShard PHP schema
Installs: 3 565
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- ext-mysqli: *
- ext-pdo: *
- byteshard/enum: ^1.0
- symfony/console: ^6.2
Requires (Dev)
- byteshard/core: ^1.0
- composer/composer: ^2.5
- phpstan/phpstan: ^1.9
README
install byteShard schema
composer require byteshard/schema
Create/migrate database
Make sure your database connection is entered in the /config.php file in the root directory.
Then call ./vendor/bin/database
to execute the migration.
Development
Clone repository, execute composer update
. Due to the dev-dependency to byteshard/core
and it's dependency back to this package, composer needs to know the current package version. This can be achieved by setting COMPOSER_ROOT_VERSION=$(git describe --tags --abbrev=0)
. In a docker environment the following command achieves the same: docker run --rm --interactive --tty --volume $PWD:/app --volume ~/.composer:/tmp -e COMPOSER_ROOT_VERSION=$(git describe --tags --abbrev=0) composer
.
Contribution
Please read our Contribution Guide.
License
The license can be found here