2017 © Pedro Peláez
 

library proto-generator

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

image

dam1r89/proto-generator

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  • Thursday, July 20, 2017
  • by dam1r89
  • Repository
  • 8 Watchers
  • 6 Stars
  • 208 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

Install, (*1)

composer require "dam1r89/proto-generator" --dev 

Add to config/app.php under the providers key, but before application providers., (*2)

dam1r89\ProtoGenerator\ProtoGeneratorServiceProvider::class,

If you want to edit templates you can publish them., (*3)

php artisan vendor:publish --tag="proto-generator"

Example

To scaffold resource with name post you type:, (*4)

php artisan proto post --fields='{"name":{}, "body":{}, "rating": {"type": "number"}}'

fields flag is json data which is transferred to the templates., (*5)

and add bindings to the routes.php file:, (*6)

Route::resource('post', 'PostsController');

then go to local serving address, for example on http://localhost:8000/posts and you can see simple crud application., (*7)

For hasOne relation use field name and id: "category_id": {"label": "name"}., (*8)

Flags

-r replace files withouth asking
-t template folder - default standard
-f fields
-d additional context data
-o output folder - default base, (*9)

Using from app

use dam1r89\ProtoGenerator\ContextDataParser;
use dam1r89\ProtoGenerator\Proto;

$parser = new ContextDataParser('users', ['first_name', 'last_name']);
$context = $parser->getContextData();

$context['additional_data'] = 'whatever';


$p = Proto::create('source/path/', base_path(), $context);
$p->generate(true);

The Versions

20/07 2017

dev-formatters

dev-formatters

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

The Development Requires

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

27/06 2017

dev-master

9999999-dev

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

01/04 2017

2.0.14

2.0.14.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

03/11 2016

2.0.13

2.0.13.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

08/05 2016

1.0.12

1.0.12.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

08/05 2016

2.0.12

2.0.12.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

08/05 2016

2.0.11

2.0.11.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

25/04 2016

2.0.10

2.0.10.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

28/02 2016

2.0.9

2.0.9.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

26/02 2016

2.0.8

2.0.8.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

28/07 2015

2.0.7

2.0.7.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

25/07 2015

2.0.6

2.0.6.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

25/07 2015

dev-origin

dev-origin

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

23/03 2015

2.0.5

2.0.5.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

16/03 2015

2.0.4

2.0.4.0

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

  Sources   Download

The Requires

 

by Ivan Mijatovic
by Damir Miladinov

laravel command generator scaffold prototyping

15/03 2015

dev-laravel5

dev-laravel5

  Sources   Download

The Requires

 

by Avatar dam1r89

15/03 2015

2.0.3

2.0.3.0

  Sources   Download

The Requires

 

by Avatar dam1r89

14/03 2015

2.0.2

2.0.2.0

  Sources   Download

The Requires

 

by Avatar dam1r89

14/03 2015

2.0.1

2.0.1.0

  Sources   Download

The Requires

 

by Avatar dam1r89

13/03 2015

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Avatar dam1r89

13/03 2015

2.0

2.0.0.0

  Sources   Download

The Requires

 

by Avatar dam1r89