subscribo / schemabuilder
Schema builder for building models, migrations, etc from schema
Requires
- php: ^5.4 || ^7.0
- illuminate/support: ^5.3
- subscribo/config: ^0.1.0
- subscribo/dependencyresolver: ^0.1.1
- subscribo/environment: ^0.1.0
- subscribo/serviceprovider: ^0.1.2
- symfony/yaml: ^2.6 || ^3.0
Suggests
- frozennode/administrator: This package generates config files for Frozennode Administrator
- laravel/framework: This package have been build to work with The Laravel Framework version 4.2. Version 5.0 can also be used.
This package is not auto-updated.
Last update: 2024-11-23 21:09:56 UTC
README
Schema builder for building models, migrations, etc from schema
Installation
- Add the following to your project's composer.json:
1.1 Repository containing this package (note: you need to have access to this repository as well as to resources it points to)
1.2 Dependency under "require" or "require-dev" keys
"subscribo/schemabuilder": "^0.1.0"
1.3 To use with Laravel add
'\\Subscribo\\SchemaBuilder\\SchemaBuilderServiceProvider',
under 'providers' key in app/config/app.php file
or
if (class_exists('\\Subscribo\\SchemaBuilder\\SchemaBuilderServiceProvider')) { App::register('\\Subscribo\\SchemaBuilder\\SchemaBuilderServiceProvider'); }
in app/start/artisan.php for conditional registration
Usage
-
Put your schema.yml into config/schemabuilder directory of your project (or modify respective constant of BuildCommandAbstract). You may also use doc/examples/schema.yml and modify it as needed.
-
If needed, put AbstractModel from doc/examples into your project
-
Setup autoload for needed classes and namespaces in your composer.json and run
composer dump-autoload
- Run from command line
php artisan build