PHPackages                             laranext/span - 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. [Admin Panels](/categories/admin)
4. /
5. laranext/span

ActiveLibrary[Admin Panels](/categories/admin)

laranext/span
=============

Laranext span is based on reusable plug and play system.

v0.1.9(1y ago)32.0k11MITPHPPHP ^8.0|^8.1|^8.2

Since Sep 9Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/laranext/span)[ Packagist](https://packagist.org/packages/laranext/span)[ RSS](/packages/laranext-span/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (11)Used By (1)

[![Total Downloads](https://camo.githubusercontent.com/6654ea496dcca7e8979c3f938f9e037558986376e3b43110a00eb136b8d0dd20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616e6578742f7370616e)](https://packagist.org/packages/laranext/span)[![Latest Stable Version](https://camo.githubusercontent.com/4d14a1ecd703f85ec896506c21572fcd84a12053ff1d12bbf9c4aa443caf672e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616e6578742f7370616e)](https://packagist.org/packages/laranext/span)[![License](https://camo.githubusercontent.com/e0b90ba319ea53a635f68da20b394c98ea3b2e21bfe8e6232a3c841e16709c53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6172616e6578742f7370616e)](https://packagist.org/packages/laranext/span)

Introduction - Span
-------------------

[](#introduction---span)

Laranext Span is module based approach, restful code separation, plug &amp; play.

code separation like `routes`, `controllers`, `models`, `resources`, `views`, `migrations`

for example we have admin package and it will load with `/admin` key.

let's have a try.

Getting Started
---------------

[](#getting-started)

To install through Composer, by run the following command:

```
composer require laranext/span
```

then run install command to publish config file.

```
php artisan span:install
```

Create span package with your package name

```
php artisan span:package admin
```

if you will not choose any stub then default laravel package will be create.

after creating package we need to register in our `config/span.php` providers.

```
'providers' => [
    'admin' => Admin\AdminServiceProvider::class,
],
```

then visit `/admin` in the browser.

Generate Comands
----------------

[](#generate-comands)

it will work like default laravel artisan make commands.

the only difference is after class name we need package name too.

#### Controller

[](#controller)

```
# Generate a controller class...
php artisan span:controller PhotoController admin

# Generate a resource controller class...
php artisan span:controller PhotoController admin --resource

# Generate a model and resource controller class...
php artisan span:controller PhotoController admin --resource --model=Photo

# Generate an api controller class...
php artisan span:controller Api/PhotoController admin --api

# Generate a invokable controller class...
php artisan span:controller ShowHomepage admin --invokable
```

#### Model

[](#model)

```
# Generate a model class...
php artisan span:model Flight admin

# Generate a model and a migration class...
php artisan span:model Flight admin --migration

# Generate a model and a FlightController class...
php artisan span:model Flight admin --controller
```

#### Migration

[](#migration)

```
php artisan span:migration create_flights_table admin
```

Why
---

[](#why)

why i created this over `laranext`, because laranext is little advance and not native for laravel developers.

`Span` is the same concept used by the `laranext` but it's more close to native `laravel`.

we can say it's only separation of code if we needed, it's totally optional.

`laranext` is still under production and not available publicly at the moment.

Credits
-------

[](#credits)

- [Muhammad Ahsan Abrar](https://github.com/ahsanabrar)

License
-------

[](#license)

Laranext Span is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance48

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~141 days

Recently: every ~280 days

Total

10

Last Release

482d ago

PHP version history (3 changes)v0.1.0PHP ^7.3|^8.0

v0.1.6PHP ^8.0|^8.1

v0.1.9PHP ^8.0|^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53524023?v=4)[laranext](/maintainers/laranext)[@laranext](https://github.com/laranext)

---

Top Contributors

[![AhsanAbrar](https://avatars.githubusercontent.com/u/16134379?v=4)](https://github.com/AhsanAbrar "AhsanAbrar (18 commits)")[![laranext](https://avatars.githubusercontent.com/u/53524023?v=4)](https://github.com/laranext "laranext (2 commits)")

---

Tags

laraveladmin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laranext-span/health.svg)

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

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

29420.2k3](/packages/sebastienheyd-boilerplate)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.9k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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