PHPackages                             bsharp/larinterface - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bsharp/larinterface

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bsharp/larinterface
===================

Easy Interface generation for your Laravel project

v1.0.0(10y ago)141312MITPHPPHP &gt;=5.4.0

Since Jul 24Pushed 10y ago3 watchersCompare

[ Source](https://github.com/bsharp/Larinterface)[ Packagist](https://packagist.org/packages/bsharp/larinterface)[ Docs](https://github.com/bsharp/larinterface)[ RSS](/packages/bsharp-larinterface/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (14)Used By (0)

Larinterface
============

[](#larinterface)

[![Build Status](https://camo.githubusercontent.com/eeb6c941d2f6ff2ccbde14fe2a536f5fda2d1c2190484827fb4475987bd6ee60/68747470733a2f2f7472617669732d63692e6f72672f6273686172702f4c6172696e746572666163652e737667)](https://travis-ci.org/bsharp/Larinterface)[![StyleCI](https://camo.githubusercontent.com/573c89ab2e540f0ce14aa553a862f6878c72d2c4ae2a44a95052fd9c5994c5c7/68747470733a2f2f7374796c6563692e696f2f7265706f732f33393536373638312f736869656c64)](https://styleci.io/repos/39567681)[![Latest Stable Version](https://camo.githubusercontent.com/d42eb389be83bb778216a6a5da9d54371e983bca2b4f211ee7301844514de34d/68747470733a2f2f706f7365722e707567782e6f72672f6273686172702f6c6172696e746572666163652f762f737461626c65)](https://packagist.org/packages/bsharp/larinterface)[![Total Downloads](https://camo.githubusercontent.com/5dd3d0d7682d833e35d7b8030fd6deaa36745a9e109219503fe629962ca6b47a/68747470733a2f2f706f7365722e707567782e6f72672f6273686172702f6c6172696e746572666163652f646f776e6c6f616473)](https://packagist.org/packages/bsharp/larinterface)[![License](https://camo.githubusercontent.com/79658f8795f38bac5edeafe25eb0cb6dbde680662e4be1acc8886e21a2224488/68747470733a2f2f706f7365722e707567782e6f72672f6273686172702f6c6172696e746572666163652f6c6963656e7365)](https://packagist.org/packages/bsharp/larinterface)

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

#### Composer

[](#composer)

To install Larinterface using composer, run this command:

```
    composer require bsharp/larinterface

```

#### Setup

[](#setup)

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

```
    Bsharp\Larinterface\LarinterfaceServiceProvider::class

```

### Publish

[](#publish)

To add larinterface config file to your app, use the `vendor:publish` artisan command

```
  php artisan vendor:publish

```

### Configuration

[](#configuration)

Open the generated `config/larinterface.php` file and change the configuration to fits your needs.

### Execution

[](#execution)

Now Larinterface should work using the command:

```
  php artisan larinterface:generate

```

File watcher
------------

[](#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.

### Using Laravel Elixir

[](#using-laravel-elixir)

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

\#####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 !

### Using PHPStorm or other JetBrain IDE:

[](#using-phpstorm-or-other-jetbrain-ide)

First go to your settings and open `Files Watchers`[![idea-1](https://cloud.githubusercontent.com/assets/2951704/9404707/0e74d9d2-47f2-11e5-92bc-c2557595dc3e.png)](https://cloud.githubusercontent.com/assets/2951704/9404707/0e74d9d2-47f2-11e5-92bc-c2557595dc3e.png)

Then create a new `Larinterface` watcher and configure it as follow: [![idea-2](https://cloud.githubusercontent.com/assets/2951704/9404709/11a5af0a-47f2-11e5-9fb0-71a97015416f.png)](https://cloud.githubusercontent.com/assets/2951704/9404709/11a5af0a-47f2-11e5-9fb0-71a97015416f.png)

Contributing
------------

[](#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.

License
-------

[](#license)

Larinterface is open-sourced software licensed under the MIT license

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

13

Last Release

3924d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd6a8bce5710fca6128b791a5b7d38370da4ded37342ccee6a4c61cc3b330718?d=identicon)[Bsharp](/maintainers/Bsharp)

---

Top Contributors

[![RonDarby](https://avatars.githubusercontent.com/u/3223084?v=4)](https://github.com/RonDarby "RonDarby (1 commits)")

---

Tags

laravelgeneratorinterfacelaravel5

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bsharp-larinterface/health.svg)

```
[![Health](https://phpackages.com/badges/bsharp-larinterface/health.svg)](https://phpackages.com/packages/bsharp-larinterface)
```

###  Alternatives

[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[dcblogdev/laravel-module-generator

Generate Laravel Modules from a template.

7710.1k1](/packages/dcblogdev-laravel-module-generator)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

295.1k](/packages/linkxtr-laravel-qrcode)[akira/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

431.4k](/packages/akira-laravel-qrcode)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
