PHPackages                             lenepalu/lp-generator - 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. [Framework](/categories/framework)
4. /
5. lenepalu/lp-generator

ActiveLibrary[Framework](/categories/framework)

lenepalu/lp-generator
=====================

Laravel 5.2 lp-crud generator

1.0.2.1(10y ago)349MITPHPPHP &gt;=5.5.9

Since Feb 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lenepalu/LpGenerator)[ Packagist](https://packagist.org/packages/lenepalu/lp-generator)[ RSS](/packages/lenepalu-lp-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Laravel 5.2 lp CRUD Generator
=============================

[](#laravel-52-lp-crud-generator)

Laravel lp Generator

### Requirements

[](#requirements)

```
Laravel >=5.1
PHP >= 5.5.9

```

Installation
------------

[](#installation)

1. Run

    ```
    composer require lenepalu/lp-generator

    ```
2. Add service provider to **/config/app.php** file.

    ```
    'providers' => [
        ...

        LenePalu\LpGenerator\LpGeneratorServiceProvider::class,
    ],
    ```
3. Install **laravelcollective/html** package for form &amp; html.

    - Add service provider &amp; aliases to **/config/app.php** file.

    ```
    'providers' => [
        ...

        Collective\Html\HtmlServiceProvider::class,
    ],

    // Use the lines below for "laravelcollective/html" package otherwise remove it.
    'aliases' => [
        ...

        'Form'      => Collective\Html\FormFacade::class,
        'HTML'      => Collective\Html\HtmlFacade::class,
    ],
    ```
4. Run **composer update**
5. Publish config file &amp; generator template files.

    ```
    php artisan vendor:publish

    ```

Note: You should have configured database for this operation.

Commands
--------

[](#commands)

#### Crud command:

[](#crud-command)

```
php artisan lp:crud Posts --fields="title:string, body:text"

```

You can also easily include route, set primary key, set views directory etc through options **--route**, **--pk**, **--view-path** as belows:

```
php artisan lp:crud Posts --fields="title:string:required, body:text:required" --route=yes --pk=id --view-path="admin" --namespace=Admin --route-group=admin

```

Options:

- --fields : Fields name for the form &amp; model.
- --route : Include Crud route to routes.php? yes or no.
- --pk : The name of the primary key.
- --view-path : The name of the view path.
- --namespace : Namespace of the controller.
- --route-group : Prefix of the route group.

---

---

#### Other commands (optional):

[](#other-commands-optional)

For controller generator:

```
php artisan lp:controller PostsController --crud-name=posts --model-name=Post --view-path="directory" --route-group=admin

```

For model generator:

```
php artisan lp:model Post --fillable="['title', 'body']"

```

For migration generator:

```
php artisan lp:migration posts --schema="title:string, body:text"

```

For view generator:

```
php artisan lp:view posts --fields="title:string, body:text" --view-path="directory" --route-group=admin

```

By default, the generator will attempt to append the crud route to your *routes.php* file. If you don't want the route added, you can use the option `--route=no`.

After creating all resources, run migrate command. *If necessary, include the route for your crud as well.*

```
php artisan migrate

```

If you chose not to add the crud route in automatically (see above), you will need to include the route manually.

```
Route::resource('posts', 'PostsController');
```

### Supported Field Types

[](#supported-field-types)

These fields are supported for migration and view's form:

- string
- char
- varchar
- password
- email
- date
- datetime
- time
- timestamp
- text
- mediumtext
- longtext
- json
- jsonb
- binary
- number
- integer
- bigint
- mediumint
- tinyint
- smallint
- boolean
- decimal
- double
- float

\##Author

\[Lene Palu\] ()

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~1 days

Total

6

Last Release

3719d ago

### Community

Maintainers

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

---

Top Contributors

[![lenepalu](https://avatars.githubusercontent.com/u/9923704?v=4)](https://github.com/lenepalu "lenepalu (15 commits)")

---

Tags

laravelcrud generatorlenepalularavel lp generator

### Embed Badge

![Health badge](/badges/lenepalu-lp-generator/health.svg)

```
[![Health](https://phpackages.com/badges/lenepalu-lp-generator/health.svg)](https://phpackages.com/packages/lenepalu-lp-generator)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M672](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M597](/packages/laravel-ui)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)

PHPackages © 2026

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