2017 © Pedro Peláez
 

library larinterface

Easy Interface generation for your Laravel project

image

bsharp/larinterface

Easy Interface generation for your Laravel project

  • Monday, August 31, 2015
  • by Bsharp
  • Repository
  • 4 Watchers
  • 13 Stars
  • 121 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Larinterface

Build Status StyleCI Latest Stable Version Total Downloads License, (*1)

Larinterface help you to be more productive by generating automaticaly all the interface in your Laravel project by using PHP and black magic., (*2)

Composer

To install Larinterface using composer, run this command:, (*3)

    composer require bsharp/larinterface

Setup

After running composer update, open your Laravel config file located at config/app.php and add the following in the $providers array., (*4)

    Bsharp\Larinterface\LarinterfaceServiceProvider::class

Publish

To add larinterface config file to your app, use the vendor:publish artisan command, (*5)

  php artisan vendor:publish

Configuration

Open the generated config/larinterface.php file and change the configuration to fits your needs., (*6)

Execution

Now Larinterface should work using the command:, (*7)

  php artisan larinterface:generate

File watcher

Executing php artisan larinterface:generate each time after modifying one of your PHP Class is annoying so here is some ways to automate this behavior., (*8)

Using Laravel Elixir

You can create a gulp watcher, using elixir 3, to do that for you. Add this lines to your gulpfile:, (*9)

If you generate the interfaces in the same directory than your classes:

var gulp = require('gulp'); var exec = require('gulp-exec'); var Task = elixir.Task; var files = require('./storage/app/larinterface.json'); var locked = false; elixir.extend('larinterface', function() { new Task('larinterface_generate', function () { if(locked === true) { return; } locked = true; var task = gulp.src('').pipe(exec('php artisan larinterface:generate')); task.on('end', function () { setTimeout(function () { locked = false; files = require('./storage/app/larinterface.json'); }, 1000); }); return task.pipe(exec.reporter({})); }) .watch(files); });
If you generate the interface in a separate directory:

var gulp = require('gulp'); var exec = require('gulp-exec'); var Task = elixir.Task; var files = require('./storage/app/larinterface.json'); elixir.extend('larinterface', function() { new Task('larinterface_generate', function () { files = require('./storage/app/larinterface.json'); return gulp.src('').pipe(exec('php artisan larinterface:generate')).pipe(exec.reporter({})); }) .watch(files); });

You can now use mix.larinterface(); to execute Larinterface in Elixir !, (*10)

Using PHPStorm or other JetBrain IDE:

First go to your settings and open Files Watchers idea-1, (*11)

Then create a new Larinterface watcher and configure it as follow: idea-2, (*12)

Contributing

Feel free to contribute to Larinterface by sending a pull request ! You can always ask anything (related to Larinterface of course) using a GitHub issue., (*13)

License

Larinterface is open-sourced software licensed under the MIT license, (*14)

The Versions

31/08 2015

dev-master

9999999-dev https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

21/08 2015

v1.0.0

1.0.0.0 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

17/08 2015

v1.0.0-beta.8

1.0.0.0-beta8 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

17/08 2015

v1.0.0-beta.7

1.0.0.0-beta7 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

14/08 2015

v1.0.0-beta.6

1.0.0.0-beta6 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

14/08 2015

v1.0.0-beta.5

1.0.0.0-beta5 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

14/08 2015

v1.0.0-beta.4

1.0.0.0-beta4 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

12/08 2015

v1.0.0-beta.3

1.0.0.0-beta3 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

12/08 2015

v1.0.0-beta.2

1.0.0.0-beta2 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

11/08 2015

v1.0.0-beta.1

1.0.0.0-beta1 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

07/08 2015

v1.0.0-alpha.4

1.0.0.0-alpha4 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

24/07 2015

v1.0.0-alpha.3

1.0.0.0-alpha3 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

24/07 2015

v1.0.0-alpha.2

1.0.0.0-alpha2 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface

24/07 2015

v1.0.0-alpha.1

1.0.0.0-alpha1 https://github.com/bsharp/larinterface

Easy Interface generation for your Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel generator laravel5 interface