PHPackages                             elaborate-code/laravel-algerian-education-system - 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. [Database &amp; ORM](/categories/database)
4. /
5. elaborate-code/laravel-algerian-education-system

ActiveLibrary[Database &amp; ORM](/categories/database)

elaborate-code/laravel-algerian-education-system
================================================

Tables migrations seeded with the structure of the algerian education system for Laravel apps

v1.0.0(3y ago)1445[4 PRs](https://github.com/al-jazair/laravel-algerian-education-system/pulls)MITPHPPHP ^8.1

Since Aug 1Pushed 2y agoCompare

[ Source](https://github.com/al-jazair/laravel-algerian-education-system)[ Packagist](https://packagist.org/packages/elaborate-code/laravel-algerian-education-system)[ Docs](https://github.com/elaborate-code/laravel-algerian-education-system)[ RSS](/packages/elaborate-code-laravel-algerian-education-system/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

Laravel algerian education system structure
===========================================

[](#laravel-algerian-education-system-structure)

[![Packagist Version](https://camo.githubusercontent.com/d69153a28381d0bfac9b6cbb4a95e51a2a4ade8de290c54b06ca51e94414110c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c61626f726174652d636f64652f6c61726176656c2d616c67657269616e2d656475636174696f6e2d73797374656d3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/elaborate-code/laravel-algerian-education-system)[![Packagist Downloads (custom server)](https://camo.githubusercontent.com/a735fb47ba1cf583c2177df4d3a99fc1ad5c3f3f3af84118b5d524b40548344b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c61626f726174652d636f64652f6c61726176656c2d616c67657269616e2d656475636174696f6e2d73797374656d3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/elaborate-code/laravel-algerian-education-system)[![GitHub Workflow Status](https://camo.githubusercontent.com/6a77a8a08442f3f03126c51bcd2d2c0a3dc824e5ac373444142b4a158db48f3d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f656c61626f726174652d636f64652f6c61726176656c2d616c67657269616e2d656475636174696f6e2d73797374656d2f72756e2d74657374733f6c6162656c3d5465737473267374796c653d666f722d7468652d6261646765)](https://github.com/elaborate-code/laravel-algerian-education-system/actions/workflows/run-tests.yml)[![GitHub Workflow Status](https://camo.githubusercontent.com/d906c3cb16e198e26aaa06323241ab7fad7ca95e50aa6162d0ae46299eea6355/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f656c61626f726174652d636f64652f6c61726176656c2d616c67657269616e2d656475636174696f6e2d73797374656d2f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d436f64652532305374796c65267374796c653d666f722d7468652d6261646765)](https://github.com/elaborate-code/laravel-algerian-education-system/actions/workflows/fix-php-code-style-issues.yml)

[![banner](https://camo.githubusercontent.com/3228ed9923d90b8b9a1376641b2c9622729a17ca362bdf1519e024ba1e3d91ac/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f416c67657269616e253230656475636174696f6e25323073797374656d2532307374727563747572652e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d656c61626f726174652d636f64652532466c61726176656c2d616c67657269616e2d656475636174696f6e2d73797374656d267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d5461626c65732b6d6967726174696f6e732b7365656465642b776974682b7468652b7374727563747572652b6f662b7468652b616c67657269616e2b656475636174696f6e2b73797374656d2b666f722b4c61726176656c2b61707073266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6461746162617365)](https://camo.githubusercontent.com/3228ed9923d90b8b9a1376641b2c9622729a17ca362bdf1519e024ba1e3d91ac/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f416c67657269616e253230656475636174696f6e25323073797374656d2532307374727563747572652e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d656c61626f726174652d636f64652532466c61726176656c2d616c67657269616e2d656475636174696f6e2d73797374656d267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d5461626c65732b6d6967726174696f6e732b7365656465642b776974682b7468652b7374727563747572652b6f662b7468652b616c67657269616e2b656475636174696f6e2b73797374656d2b666f722b4c61726176656c2b61707073266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6461746162617365)

If you are building a **Learning Management System** or a **School Management System** and targeting the Algerian market, this package is perfect to kick start your project by providing migrations and seeders according to the **Algerian education system** structure. see [tables.md](tables.md)

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

[](#installation)

Install the package via composer:

```
composer require elaborate-code/laravel-algerian-education-system
```

Publish and run the migrations:

```
php artisan vendor:publish --tag="algerian-education-system-migrations"
php artisan migrate
```

You may need to rename the migration to something like `2014_10_12_200000_create_cycles_table.php`, `2014_10_12_200000_create_class_types_table.php` to make them run automatically with the first migrations.

### Publishing config file \[Optional\]

[](#publishing-config-file-optional)

You can publish the config file with:

```
php artisan vendor:publish --tag="algerian-education-system-config"
```

This is the contents of the published config file:

```
return [
    'cycles_table_name' => null, // defaults to cycles
    'class_types_table_name' => null, // defaults to class_types
];
```

That allows you to rename the `tables` names before running the migrations.

Usage
-----

[](#usage)

### Seeders

[](#seeders)

After publishing and running the migrations, add the seeders to the called seeders list:

- `AlgerianEducationSystemSeeder` is the main seeder that calls:
    - `CycleSeeder`
    - `ClassTypeSeeder`
- `MergePrescolaireIntoPrimaireCycleSeeder` as the name states it deletes the `pre-scolaire` cycle row, and edits the `pre-scolaire` class type to belong to `primaire` cycle

```
// Database\Seeders\DatabaseSeeder
public function run()
{
    $this->call([
        ElaborateCode\AlgerianEducationSystem\Database\Seeders\AlgerianEducationSystemSeeder::class,
        // ElaborateCode\AlgerianEducationSystem\Database\Seeders\MergePrescolaireIntoPrimaireCycleSeeder::class,
    ]);
}
```

Or call it directly from the command line:

```
php .\artisan db:seed --class=ElaborateCode\AlgerianEducationSystem\Database\Seeders\AlgerianEducationSystemSeeder
```

### Models

[](#models)

The models `ElaborateCode\AlgerianEducationSystem\Models\Cycle` and `ElaborateCode\AlgerianEducationSystem\Models\ClassType` give you access to a set of relationships. so either use them or extend them.

- `Cycle::classTypes(): HasMany`
- `ClassType::cycle(): BelongsTo`
- `ClassType::previousClassType(): BelongsTo`
- `ClassType::nextClassTypes(): HasMany`
- `ClassType::previousLevelClassTypes(): HasMany`
- `ClassType::nextLevelClassTypes(): HasMany`

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/medilies/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [medilies](https://github.com/medilies)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 58.8% 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

Unknown

Total

1

Last Release

1381d ago

### Community

Maintainers

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

---

Top Contributors

[![medilies](https://avatars.githubusercontent.com/u/35309918?v=4)](https://github.com/medilies "medilies (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

algeriadatabaseeducationlaravelpackagestructurelaravelmigrationseedercyclesalgerian-education-systemeducation-system-structureclassrooms

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/elaborate-code-laravel-algerian-education-system/health.svg)

```
[![Health](https://phpackages.com/badges/elaborate-code-laravel-algerian-education-system/health.svg)](https://phpackages.com/packages/elaborate-code-laravel-algerian-education-system)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

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