PHPackages                             4myth/laravel-tools - 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. 4myth/laravel-tools

ActiveLibrary[Framework](/categories/framework)

4myth/laravel-tools
===================

Tools of laravel framework

2.0.0(2y ago)01.2kMITCSSPHP &gt;=8.2

Since Jan 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/mythpe/laravel-tools)[ Packagist](https://packagist.org/packages/4myth/laravel-tools)[ RSS](/packages/4myth-laravel-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (18)Versions (7)Used By (0)

MyTh Laravel tools
==================

[](#myth-laravel-tools)

Laravel framework Tools. useful to development API applications. Support for JS framework such as vuejs &amp; vuetify. All documentation under building.

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

[](#installation)

---

### Using composer:

[](#using-composer)

```
composer require 4myth/laravel-tools

```

### Publishes

[](#publishes)

Provider

```
php artisan vendor:publish --provider="Myth\LaravelTools\Providers\ServiceProvider"

```

---

Configuration

```
php artisan vendor:publish --tag=4myth-tools-config

```

---

Migrations

```
php artisan vendor:publish --tag=4myth-tools-migrations

```

---

Views

```
php artisan vendor:publish --tag=4myth-tools-views

```

---

Language

```
php artisan vendor:publish --tag=4myth-tools-lang

```

---

Models

```
php artisan vendor:publish --tag=4myth-tools-models

```

---

Public Assets

```
php artisan vendor:publish --tag=4myth-tools-assets

```

---

### Tool Middleware

[](#tool-middleware)

- Convert Arabic numbers to English.
- `postman` use to create postman documentation.
- `permission` use to make permissions for routes. only have auth middleware

---

##### Convert Arabic numbers to English:

[](#convert-arabic-numbers-to-english)

Edit file `app/Http/Kernel.php`.

```
use Myth\LaravelTools\Http\Middleware\ArToEnMiddleware;

protected $middleware = [
    ...Your Middleware
    ArToEnMiddleware::class
]

```

---

##### Postman documentation Example:

[](#postman-documentation-example)

Define your routes. for example in : `routes/api.php`

```
Route::group(['middleware' => ['postman']], function(Router $router){
    your routes here
});

```

Edit `app/Http/Kernel.php` to define route middleware in kernel.

```
use Myth\LaravelTools\Http\Middleware\PostmanMiddleware;

protected $routeMiddleware = [
    ...Your Middleware
    'postman' => PostmanMiddleware::class,
]

```

---

##### Permissions Example:

[](#permissions-example)

Define your routes. for example in : `routes/api.php`

```
Route::group(['middleware' => ['auth:sanctum', 'permission']], function(Router $router){
    Route::get('route-path', [UserController::class, 'example'])->name('example');
    Route::get('route-path', [UserController::class, 'example'])->name('Model.DeleteFile');
    Route::get('', [UserController::class, 'index'])->name('User.index');
});

```

The name of the permissions depend on the route name. an example: `example` , `User.index` and `Model.DeleteFile`

Edit `app/Http/Kernel.php` to define route middleware in kernel.

```
use Myth\LaravelTools\Http\Middleware\PermissionMiddleware;

protected $routeMiddleware = [
    ...Your Middleware
    'permission' => PermissionMiddleware::class,
]

```

---

### Tool commands

[](#tool-commands)

- `php artisan myth:postman` Postman API documentation. Only routes has middleware `postman`
- `php artisan myth:js-lang` Export language files to JS
- `php artisan myth:model` Make crud of model

---

### Laravel File system

[](#laravel-file-system)

This tool use the laravel file system `config/filesystems.php`

Types: `root`, `app`, `setup`, `logs`, `media`, `pdf`, `excel` and `qr`

```
'disks' => [
    ... your disks

    'root' => [
        'driver' => 'local',
        'root'   => base_path(),
        'throw'  => false,
    ],

    'app' => [
        'driver' => 'local',
        'root'   => app_path(),
        'throw'  => false,
    ],

    'logs' => [
        'driver' => 'local',
        'root'   => storage_path('logs'),
        'throw'  => false,
    ],

    'setup' => [
        'driver' => 'local',
        'root'   => resource_path('setup'),
        'throw'  => false,
    ],

    'media' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/media'),
        'url'        => env('APP_URL').'/storage/media',
        'visibility' => 'public',
        'throw'      => false,
    ],

    'pdf' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/pdf'),
        'url'        => env('APP_URL').'/storage/pdf',
        'visibility' => 'public',
        'throw'      => false,
    ],

    'excel' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/excel'),
        'url'        => env('APP_URL').'/storage/excel',
        'visibility' => 'public',
        'throw'      => false,
    ],

    'qr' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/qr'),
        'url'        => env('APP_URL').'/storage/qr',
        'visibility' => 'public',
        'throw'      => false,
    ],
]

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance58

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~196 days

Total

6

Last Release

61d ago

Major Versions

v1.x-dev → 2.0.02024-02-02

v2.x-dev → v3.x-dev2026-03-10

### Community

Maintainers

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

---

Top Contributors

[![mythpe](https://avatars.githubusercontent.com/u/39555047?v=4)](https://github.com/mythpe "mythpe (313 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/4myth-laravel-tools/health.svg)

```
[![Health](https://phpackages.com/badges/4myth-laravel-tools/health.svg)](https://phpackages.com/packages/4myth-laravel-tools)
```

###  Alternatives

[code16/sharp

Laravel Content Management Framework

78959.5k4](/packages/code16-sharp)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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