PHPackages                             toanna/saf-laravel-toolkit - 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. toanna/saf-laravel-toolkit

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

toanna/saf-laravel-toolkit
==========================

A development toolkit for SAF's Laravel Developers

v1.3.4(6y ago)12.2k1[2 issues](https://github.com/toanna/saf-laravel-toolkit/issues)MITPHPPHP &gt;=7.1CI failing

Since Dec 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/toanna/saf-laravel-toolkit)[ Packagist](https://packagist.org/packages/toanna/saf-laravel-toolkit)[ RSS](/packages/toanna-saf-laravel-toolkit/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (7)Versions (14)Used By (0)

saf-laravel-toolkit
===================

[](#saf-laravel-toolkit)

A development toolkit for SAF's Laravel Developer

Get started
-----------

[](#get-started)

```
$ composer require toanna/saf-laravel-toolkit

```

Commands
--------

[](#commands)

### Initialize folder structure

[](#initialize-folder-structure)

```
$ php artisan saf:init

```

Folder structure:

```
/app
    /Abstraction
        /ExternalServiceInterface
        /RepositoryInterface
    /Business
    /BusinessService
    /Common
        /CircuitBreaker
        /DomainModels
        /Exceptions
        /ExternalConfig
        /Logging
    /Dependency
        /ExternalServices
        /Repositories
    /Providers
    /Representation
        /Console
        /Http
            /Controllers
                /Api
                /Auth
            /Middleware
            /Requests
            Kernel.php

```

### Initialize git hooks

[](#initialize-git-hooks)

After connect with your remote, run this to setup:

```
$ php artisan saf:git-hooks-init

```

### Creating Commands

[](#creating-commands)

Create an Abstraction Interface to `app/Abstraction/`:

```
$ php artisan saf:abstraction ExternalServiceInterface/IFileUploader

```

Create a Business Logic Class to `app/Business/`:

```
$ php artisan saf:business CreateFileBL

```

Create a Business Service Class to `app/BusinessService/`:

```
$ php artisan saf:business_service CreateFileBS

```

Create a Controller Class to `app/Representation/Http/`:

```
$ php artisan saf:controller TestController

```

Create an API Controller Class to `app/Representation/Http/Api`:

```
$ php artisan saf:api_controller FileController

```

Create a Dependency Class to `app/Dependency/`:

```
$ php artisan saf:dependency Repositories/SQLFileCreator

```

Create a Domain Model Class to `app/Common/DomainModels`:

```
$ php artisan saf:domain_model File

```

Create an Eloquent ORM Class to `app/Dependency/Repositories/Eloquent/`:

```
$ php artisan saf:eloquent FileEloquent

```

Create an Exception Class to `app/Common/Exceptions/`:

```
$ php artisan saf:exception ValidationException

```

Create a Form Request Class to `app/Representation/Http/Requests/`:

```
$ php artisan saf:request CreateFileRequest

```

Create a Resource to `app/Representation/Http/Resources/`:

```
$ php artisan saf:resource

```

Create a Artisan Command to `app/Representation/Console/Commands/`:

```
$ php artisan saf:console AbstractionMakeCommand

```

Common Libraries
----------------

[](#common-libraries)

### Elastic Logger

[](#elastic-logger)

Example in `app/config/logging.php`:

```
'stack' => [
    'driver' => 'stack',
    'channels' => ['daily', 'elastic'],
],

'elastic' => [
    'driver' => 'custom',
    'via' => Toanna\SAFLaravelToolkit\Common\Logging\ElasticLogger::class,
    'host' => 'localhost',
    'port' => 9200,
    'level' => 'debug'
],

```

Contributors
------------

[](#contributors)

- Thắng Lê
- Toàn Nguyễn

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~26 days

Recently: every ~72 days

Total

13

Last Release

2409d ago

### Community

Maintainers

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

---

Top Contributors

[![toanna](https://avatars.githubusercontent.com/u/7908196?v=4)](https://github.com/toanna "toanna (26 commits)")[![thanhcam281994](https://avatars.githubusercontent.com/u/8414272?v=4)](https://github.com/thanhcam281994 "thanhcam281994 (6 commits)")

### Embed Badge

![Health badge](/badges/toanna-saf-laravel-toolkit/health.svg)

```
[![Health](https://phpackages.com/badges/toanna-saf-laravel-toolkit/health.svg)](https://phpackages.com/packages/toanna-saf-laravel-toolkit)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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