PHPackages                             super-admin-org/helpers - 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. super-admin-org/helpers

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

super-admin-org/helpers
=======================

Helpers extension for super-admin

v1.0.16(5mo ago)41.3k—0%MITPHPPHP &gt;=8.0.0CI failing

Since Jun 22Pushed 5mo agoCompare

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

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

Helpers for Super-Admin
=======================

[](#helpers-for-super-admin)

Laravel Scaffolding System (Super-Admin Extension)
==================================================

[](#laravel-scaffolding-system-super-admin-extension)

A **developer productivity extension** for [Super-Admin](https://github.com/super-admin-org/super-admin) that automates CRUD generation for Laravel applications.
From a simple **web interface**, you can generate **Models, Controllers, Views, Migrations, Routes, and Pest tests** instantly.

---

Overview
--------

[](#overview)

This extension eliminates repetitive boilerplate coding by providing a form-based interface to create Laravel CRUD modules.
It supports generating:

- **Eloquent Models**
- **Migrations**
- **Controllers** (Admin, Web, API)
- **Blade Views**
- **Routes** (Admin, Web, API)
- **Pest Unit &amp; Feature Tests**

All generated code follows a consistent and maintainable structure.

---

Workflow
--------

[](#workflow)

```
flowchart TD
  A[Open Scaffold Form] --> B[Fill Details: Model, Controller, Fields]
  B --> C[Submit to ScaffoldController@store]
  C --> D[Validate & Save to Database]
  D --> E[Generate Laravel Resources]
  E --> F[Insert Routes: Admin, Web, API]
  F --> G[Add Menu Entry (optional)]
  G --> H[Manage from Dashboard]

```

---

Key Features
------------

[](#key-features)

### 1. **Automatic Resource Generation**

[](#1-automatic-resource-generation)

- Models
- Controllers (Admin, Web, API)
- Migrations
- Blade Views
- Routes (Admin, Web, API)
- Pest Test Stubs (Unit + Feature)

### 2. **Intelligent File Handling**

[](#2-intelligent-file-handling)

- Backup before overwriting
- Remove generated files on scaffold deletion

### 3. **Admin Menu Integration**

[](#3-admin-menu-integration)

- Optionally add an admin panel menu entry

### 4. **Standardized API Responses**

[](#4-standardized-api-responses)

- Includes `ResponseMapper` trait for consistent JSON output

### 5. **Safe &amp; Reliable**

[](#5-safe--reliable)

- Rollbacks on failure
- Logs all important actions

---

---

Features
--------

[](#features)

- **Automatic Resource Generation**: Generate models, controllers (admin, web, API), migrations, Blade views, routes (admin, web, API), and test cases in Pest.
- **Intelligent File Handling**: Backup existing files before overwriting and remove unused scaffold files on deletion.
- **Admin Menu Integration**: Automatically adds a menu link to the admin panel.
- **API Response Standardization**: Includes `ResponseMapper` trait for consistent JSON formatting.
- **Error Handling**: Rolls back partial files on failure and logs all important actions.

---

Usage
-----

[](#usage)

1. **Open the Scaffold Form** – Go to `/scaffold/create` in your browser.
2. **Fill in Details** – Model name, table name, controller name, view path, and add multiple fields with type, name, and label.
3. **Submit** – Backend validates data and generates resources instantly.
4. **Manage from Dashboard** – View, download, or delete scaffolds from `/scaffold/list`.

---

Advantages
----------

[](#advantages)

- \*\* Time Saver\*\* – Generate full CRUD in seconds.
- \*\* Consistency\*\* – Standardized Laravel code structure.
- \*\* Safety\*\* – Backup before overwrite.
- \*\* Extensible\*\* – Add more generation rules easily.

---

Why This Plugin?
----------------

[](#why-this-plugin)

- **Ship faster** – Go from schema to Admin + API + Blade in minutes.
- **Stay consistent** – Shared conventions reduce “decision tax.”
- **Safer refactors** – Included tests catch regressions early.
- **Team-friendly** – Great onboarding and shared patterns.

Prerequisites
-------------

[](#prerequisites)

Before starting, make sure you have:

- Laravel project with [super-admin](https://github.com/super-admin-org/super-admin) installed.
- PHP 8.1+
- Composer
- Node.js &amp; npm (for asset compilation)
- Database configured (MySQL, PostgreSQL, Oracle, or SQL Server supported).

---

Installing the Scaffolding Extension
------------------------------------

[](#installing-the-scaffolding-extension)

Open your terminal in the Laravel project root and run:

```
composer require super-admin-org/helpers
```

This installs the **Helpers package**, which includes the **Scaffolding System**.

---

Enabling the Extension
----------------------

[](#enabling-the-extension)

Once installed

Then publish the assets and configuration:

```
php artisan vendor:publish --tag=super-admin-helpers
```

This command will:

- Publish Blade views for scaffold management.
- Publish migration files for scaffold storage.
- Add default configuration files.

---

Running the Migrations
----------------------

[](#running-the-migrations)

The Scaffolding System stores metadata about each generated CRUD in a dedicated table.

Run:

```
php artisan migrate
```

This creates the `scaffolds` and related tables.

To generate seed data from existing tables, run:

```
php artisan scaffold:generate-seeders
```

if you want to remove Remove prefix from table name to generate seed

```
php artisan scaffold:generate-seeders --remove-prefix=prefix_to_remove
```

---

Usage
-----

[](#usage-1)

1. **Open the Scaffold Form**
    Navigate to `/scaffold/create`.
2. **Fill in Details**

    - Model Name
    - Table Name
    - Controller Name
    - View Path
    - Field Definitions (type, name, label, etc.)
3. **Generate Resources**
    On submission:

    - Files are generated
    - Routes are registered
    - Optional menu link is added
4. **Manage from Dashboard**
    View, download, or delete scaffolds from `/scaffold/list`.

---

Benefits
--------

[](#benefits)

- \*\* Save Time\*\* – Full CRUD in seconds
- \*\* Consistent\*\* – Unified Laravel code patterns
- \*\* Safe\*\* – Backups prevent accidental loss
- \*\* Extensible\*\* – Easily add new generation rules

---

Example Generated Structure
---------------------------

[](#example-generated-structure)

```
app/
├─ Admin/Controllers/StudentInfoController.php
├─ Http/Controllers/Api/StudentInfoApiController.php
├─ Http/Controllers/Web/StudentInfoController.php
├─ Models/StudentInfo.php
database/migrations/
├─ 2025_..._create_student_info_table.php
resources/views/student_infos/
├─ index.blade.php
├─ create.blade.php
├─ edit.blade.php
├─ _form.blade.php
routes/
├─ api.php
├─ web.php
tests/
├─ Pest.php
├─ Unit/Models/StudentInfoTest.php
├─ Feature/API/StudentInfoApiTest.php
├─ Feature/Web/StudentInfoWebTest.php
├─ Feature/Admin/StudentInfoAdminTest.php

```

---

Pest Testing
------------

[](#pest-testing)

Generated Pest test stubs include:

- **Unit Tests** – Model configuration, traits, and fillables
- **Feature Tests** – CRUD for Admin, Web, and API endpoints

Run tests:

```
./vendor/bin/pest
```

---

🛠 Developer Notes
-----------------

[](#-developer-notes)

- **Backup Location:** `storage/scaffold_backups`
- **Generated Routes:**
    - Admin: `routes/admin.php`
    - Web: `routes/web.php`
    - API: `routes/api.php`
- **Trait Location:** `app/Traits/ResponseMapper.php`

---

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

[](#contributing)

We welcome contributions! You can help with:

- Writing &amp; improving tests
- Suggesting new generation features
- Translating documentation
- Sponsoring development

---

License
-------

[](#license)

Licensed under the [MIT License](LICENSE).

---

Credits
-------

[](#credits)

- **Original Concept:** [laravel-admin-ext/helpers](https://github.com/laravel-admin-extensions/helpers)
- **Maintained by:** [Super Admin](mailto:talemulislam@gmail.com)
- **Special Thanks:** z-song (Original Laravel-Admin Author)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance70

Regular maintenance activity

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Recently: every ~24 days

Total

15

Last Release

176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/055a97a569e21992ede85fb7eb0360c6320e424dee61d6ff5ed6ee66f700847f?d=identicon)[talemul](/maintainers/talemul)

---

Top Contributors

[![talemul](https://avatars.githubusercontent.com/u/6628982?v=4)](https://github.com/talemul "talemul (16 commits)")

---

Tags

helperssuper-admin

### Embed Badge

![Health badge](/badges/super-admin-org-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/super-admin-org-helpers/health.svg)](https://phpackages.com/packages/super-admin-org-helpers)
```

###  Alternatives

[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[browner12/helpers

generic helpers

289676.6k7](/packages/browner12-helpers)[pragmarx/ia-arr

Laravel Illuminate Agnostic Arr

553.6M12](/packages/pragmarx-ia-arr)

PHPackages © 2026

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