PHPackages                             mdarmancse/autolara - 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. mdarmancse/autolara

ActiveLibrary[Framework](/categories/framework)

mdarmancse/autolara
===================

Auto CRUD generation with Repository Pattern

v3.0.2(1y ago)319MITPHPPHP &gt;=8.0

Since Feb 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mdarmancse/autolara)[ Packagist](https://packagist.org/packages/mdarmancse/autolara)[ RSS](/packages/mdarmancse-autolara/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

AutoLara - Laravel Auto CRUD Generator
======================================

[](#autolara---laravel-auto-crud-generator)

AutoLara is a Laravel package that automatically generates CRUD operations, including models, migrations, controllers, repositories, and routes based on a simple Artisan command.

Features
--------

[](#features)

- 🔹 Generates Model, Migration, Controller, Repository, and Form Requests.
- 🔹 Updates Routes automatically.
- 🔹 Runs migration after generation.
- 🔹 Uses stub templates for customization.

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

[](#installation)

Run the following command to install AutoLara:

```
composer require mdarmancse/autolara
```

Usage
-----

[](#usage)

Run the following command to generate CRUD for a model with specified fields:

```
php artisan autolara:crud ModelName field1:type field2:type ...
```

### Example:

[](#example)

```
php artisan autolara:crud Product name:string price:integer is_active:boolean
```

### Expected Output:

[](#expected-output)

```
🔄 Generating CRUD for: Product
✅ Model created: Product
✅ Migration created: products
✅ Repository for Product generated.
✅ Controller created: ProductController
✅ Form request for Product generated.
✅ Routes for Product updated.
⚡ Running Migration...
✅ Migration successful.

```

Stubs Customization
-------------------

[](#stubs-customization)

You can customize the stub templates by copying them to `resources/stubs/`:

```
mkdir -p resources/stubs
cp -r vendor/mdarmancse/autolara/stubs resources/stubs
```

Then modify the stub files inside `resources/stubs/` to fit your project requirements.

Available Field Types
---------------------

[](#available-field-types)

The package supports the following field types:

- `string`
- `integer`
- `boolean`
- `text`
- `date`
- `datetime`
- `float`
- `double`

Troubleshooting
---------------

[](#troubleshooting)

### 1. Stub File Not Found Error

[](#1-stub-file-not-found-error)

If you encounter this error:

```
❌ Error: Stub file not found: vendor/mdarmancse/autolara/stubs/model.stub

```

Try running:

```
php artisan config:clear && php artisan cache:clear
```

If the issue persists, ensure that the stub files exist in the `vendor/mdarmancse/autolara/stubs/` directory.

### 2. Migration File Not Found Error

[](#2-migration-file-not-found-error)

If you see:

```
❌ Error: File does not exist at path database/migrations/xxxx_xx_xx_xxxxxx_create_products_table.php

```

Manually run:

```
php artisan migrate
```

---

🚀 **Happy Coding!**

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance46

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

3

Last Release

441d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7544594f982c97e9e671ae0f475d457670cda89aca062fab9a188888c17b9387?d=identicon)[mdarmancse](/maintainers/mdarmancse)

---

Top Contributors

[![mdarmancse](https://avatars.githubusercontent.com/u/65160577?v=4)](https://github.com/mdarmancse "mdarmancse (34 commits)")

### Embed Badge

![Health badge](/badges/mdarmancse-autolara/health.svg)

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

###  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/jetstream

Tailwind scaffolding for the Laravel framework.

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

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[internachi/modular

Modularize your Laravel apps

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

PHPackages © 2026

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