PHPackages                             farhad/igloo - 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. farhad/igloo

ActiveLaravel-helper[Framework](/categories/framework)

farhad/igloo
============

An automated process for create basic CRUD functionality

v1.1(7y ago)6140[1 issues](https://github.com/RafikFarhad/igloo/issues)MITPHP

Since Mar 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RafikFarhad/igloo)[ Packagist](https://packagist.org/packages/farhad/igloo)[ RSS](/packages/farhad-igloo/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (11)Used By (0)

Igloo Code Generator
====================

[](#igloo-code-generator)

Contents
--------

[](#contents)

- [Change Log](#changelog)
- [Installation](#installation)
- [Usage](#usage)
- [Super Usage](#super_usage)

Change Log
----------

[](#change-log)

### New in v1.2

[](#new-in-v12)

- GUI support inside the package
- Drop Down API included
- Several Bug Fixed

### New in v1.1

[](#new-in-v11)

- Laravel 5.7 Support
- Namespace Supports
- Several Bug Fixed

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

[](#installation)

1. To install *Igloo Code Generator*, run the following command:

    ```
    composer require infancyit/igloo
    ```
2. Run the command below to load all configuration file:

    ```
    php artisan vendor:publish --provider="InfancyIt\Igloo\IglooServiceProvider"
    ```
3. For allowing CORS on a API middleware group or route, add the `HandleCors` middleware to `middleware` array in the `Kernel.php` file:

    ```
    protected $middleware = [
            ... ... ... ... ...
            ... ... ... ... ...

            \Barryvdh\Cors\HandleCors::class,
        ];
    ```

Usage
-----

[](#usage)

### Create Model

[](#create-model)

Let's start by creating a basic Model:

Model will be saved on `app\Models` folder.

Run the following command on project root.

```
php artisan make-model Book
```

If you want to add `fillable` or `guarded` value you may pass the list of columns as well:

```
php artisan make-model Book --fillable=name,author,published_date
```

or

```
php artisan make-model Book --guarded=id
```

or

```
php artisan make-model Book --fillable=name,author,published_date --guarded=id
```

### Create Service

[](#create-service)

Let's create some basic **Service** which will extends our **BaseService** from `app\Services`:

Run the following command on project root.

```
php artisan make-service Book
```

### Create Repository

[](#create-repository)

Let's create some basic **Repository** which will extends our **BaseRepository** from `app\Repositories`:

Run the following command on project root.

```
php artisan make-repository Book
```

### Create Transformer

[](#create-transformer)

Let's create a basic **Transformer**:

Transformer will be created in the `app/Transformers/Api` folder.

Run the following command on project root.

```
php artisan make-transformer Book id,name,author,published_date
```

In the creation of `Transformer` `attributes` list are required. All columns should be separated by a single `,` (comma). This will create the main portion like this

```
public function getTransformableFields($entity)
    {
        return [
            'id'                   => (int) $entity->id,
            'name'                 => $entity->name,
            'author'               => $entity->author,
            'published_date'       => $entity->published_date
        ];
    }

```

### Create Request

[](#create-request)

Let's create a basic **Request**:

Transformer will be created in the `app/Request/Api` folder.

Run the following command on project root.

```
php artisan make-request Book id,name,author,published_date
```

In the creation of `Request` `attributes` list are required. All columns should be separated by a single `,` (comma). This will create the main portion like this

```
public function rules()
    {
        return [
            'name'                   => 'required',
            'author'                 => 'required',
            'published_date'         => 'required'
        ];
    }

```

### Create Route

[](#create-route)

You can also create API routes for your model. Run the following command on project root.

```
php artisan make-route Book
```

This command will output like this:

```
///////////////////////////// Book Routes //////////////////////////////
Route::group(['prefix' => 'book', 'namespace' => 'Api'], function () {
    Route::get('index', 'BookController@index')->name('book.index');
    Route::post('create', 'BookController@store')->name('book.store');
    Route::post('update', 'BookController@update')->name('book.update');
    Route::delete('delete', 'BookController@delete')->name('book.delete');
});

```

This command will not save anything. You've to copy this segment from console and paste it in your `web.php` or `api.php` file. The assumption for the controller name will be \[**Modelname**\]Controller.

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

[](#installation-1)

- For bundle create visit

    [Igloo Wizard - http://wizard.cse.party](http://wizard.cse.party "Igloo Wizard")
- Or you can visit `\igloo` route after package installation.

License
-------

[](#license)

Igloo Code Generator is free software distributed under the terms of the MIT license.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

Recently: every ~3 days

Total

10

Last Release

2743d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/161199f1b3c80ab23ab6da69081da0ebe5afe0a2f9887d839303e18987863ac1?d=identicon)[rafikfarhad](/maintainers/rafikfarhad)

---

Top Contributors

[![RafikFarhad](https://avatars.githubusercontent.com/u/15923187?v=4)](https://github.com/RafikFarhad "RafikFarhad (5 commits)")

---

Tags

artisan-commandcode-generationiglooigloo-wizardlaravelphprafikfarhad

### Embed Badge

![Health badge](/badges/farhad-igloo/health.svg)

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

###  Alternatives

[laravel/socialite

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

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

Dashboard and code-driven configuration for Laravel queues.

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

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

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

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)[illuminate/routing

The Illuminate Routing package.

1238.6M2.3k](/packages/illuminate-routing)

PHPackages © 2026

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