subscribo/schemabuilder

Schema builder for building models, migrations, etc from schema
67
Install
composer require subscribo/schemabuilder
Latest Version:v0.1.2
PHP:^5.4 || ^7.0
License:MIT
Last Updated:Mar 3, 2017
Links: GitHub  ·  Packagist
Maintainer: subscribo

Schema Builder Package

Schema builder for building models, migrations, etc from schema

Installation

  1. 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

  1. 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.

  2. If needed, put AbstractModel from doc/examples into your project

  3. Setup autoload for needed classes and namespaces in your composer.json and run

composer dump-autoload
  1. Run from command line
php artisan build

Related Packages

mojopollo/laravel-json-schema

Create all your migrations and models from one JSON schema file. Laravel Databas...

546 113
autn/laravel-schema

The Laravel schema package.

3,765 6
thedevsaddam/laravel-schema

Display the connected database information in console.

28,543 111
stolz/laravel-schema-spy

Laravel artisan command that uses JAVA schemaSpy tool to generate a graphical re...

21,803 43
phoenixgao/laravel-postgres-extended-schema

Laravel database schema extended, added some PostgreSql features

2,249 6