PHPackages                             gomaa/base - 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. gomaa/base

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

gomaa/base
==========

Greet - A simple Package Base

2.1.6(4mo ago)168MITPHP

Since Dec 9Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (29)Used By (0)

Gomaa/Base
==========

[](#gomaabase)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a939c913f46e1a1d0169db890e0d510fe7441c5892d2bf4cf4597392040cada0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6d61612f626173652e737667)](https://packagist.org/packages/gomaa/base)[![Total Downloads](https://camo.githubusercontent.com/cc18744789ca6eacf90f5c05567b6ff256863d9111bc5efac41c6644f8a26514/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6d61612f626173652e737667)](https://packagist.org/packages/gomaa/base)

`gomaa/base` is a Laravel package that provides **base commands and helpers** to speed up development.
It helps you quickly generate **DTOs, Mappers, Services, and more** following clean architecture principles.

---

🚀 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require gomaa/base
```

⚡ Available Commands
--------------------

[](#-available-commands)

### 1. Generate CRUD Files

[](#1-generate-crud-files)

You can quickly generate a full CRUD module (Model, Migration, Controller, Service, Routes, etc.) using:

```
php artisan crud:all
```

This will create a full module for the **Product** entity with the following structure:

```
"Product": {
    "fillables": {
      "id": "bigIncrements",
      "category_id": "unsignedBigInteger",
      "name": "string",
      "slug": "string|unique",
      "description": "text|nullable",
      "price": "decimal(10,2)",
      "stock": "integer",
      "is_active": "boolean|default:true",
      "created_at": "timestamp",
      "updated_at": "timestamp"
    }
  },
```

### 2. Route Registration

[](#2-route-registration)

Make sure your `routes/api.php` includes the following snippet to automatically load all module routes:

```
foreach (glob(base_path('app/Http/Modules').'/*/Route/index.php') as $routeFile) {
    require $routeFile;
}
```

This ensures that all generated CRUD routes are registered automatically.

### ⚡ What `crud:all Post` Generates

[](#-what-crudall-post-generates)

Running the command:

```
php artisan crud:all Post
```

Will automatically generate a full module for the Post entity, including:

Model (with defined $fillable properties) Migration (with proper schema fields) Controller (with CRUD endpoints) Service (for business logic) Route (auto-registered in routes/api.php) Mapper (to map between Model ↔ DTO) DTO (Data Transfer Object for the entity) Requests (Form Request classes for Create, Update, Show, etc.) Example Post definition

```
{
  "Post": {
    "fillables": {
      "id": "int",
      "title": "string",
      "content": "text",
      "user_id": "unsignedBigInteger",
      "is_published": "boolean"
    }
  }
}
```

🛠 Requirements
--------------

[](#-requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10.x
- Composer &gt;= 2.x

🤝 Contributing
--------------

[](#-contributing)

Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.

If you're contributing, don't forget to run the following:

```
composer update
git commit -m "Your changes"
git push origin main
git tag 1.0.1
git push -u origin --tags
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance74

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~19 days

Total

28

Last Release

145d ago

Major Versions

1.2.5 → 2.0.02025-09-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/88a627a7953f0a1f222536cbc067fd44dceba120562663d024f2be9f3c6785a4?d=identicon)[mohamedahmedgomaa](/maintainers/mohamedahmedgomaa)

---

Top Contributors

[![mohamedahmedgomaa](https://avatars.githubusercontent.com/u/42862417?v=4)](https://github.com/mohamedahmedgomaa "mohamedahmedgomaa (39 commits)")

### Embed Badge

![Health badge](/badges/gomaa-base/health.svg)

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

PHPackages © 2026

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