PHPackages                             teksite/module - 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. teksite/module

ActiveLibrary[Framework](/categories/framework)

teksite/module
==============

a package to create modules for a laravel project

3.0.13(3w ago)1431MITPHPPHP &gt;=8.3

Since Jan 29Pushed 3w ago1 watchersCompare

[ Source](https://github.com/teksite/module)[ Packagist](https://packagist.org/packages/teksite/module)[ RSS](/packages/teksite-module/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (26)Versions (25)Used By (1)

Modular Laravel Package
=======================

[](#modular-laravel-package)

A comprehensive Laravel package that brings modularity to your applications. It allows you to organize your code into reusable, self-contained modules — each with its own controllers, models, views, and service providers. The package provides Artisan commands similar to Laravel's native ones, prefixed with `module:` for easy module management.

Table of Contents
-----------------

[](#table-of-contents)

- [About](#about)
- [Author](#author)
- [Contact](#contact)
- [Installation](#installation)
- [Usage](#usage)
    - [Creating a Module](#creating-a-module)
    - [Module Commands](#module-commands)
    - [Changing Module Priority](#changing-module-priority)
    - [Integration with Lareon](#integration-with-lareon)
- [Credits](#credits)
- [License](#license)
- [Support](#support)

About
-----

[](#about)

The **Modular Laravel Package** (`teksite/module`) enables full modularity in Laravel applications. Modules are stored in the `Lareon/Modules` directory, each replicating a mini Laravel structure. The package mirrors native Laravel Artisan commands but prefixes them with `module:` to avoid conflicts.

> **Note:** From version 3 onward, this package is merged with `teksite/lareon`. Both functionalities are now provided in a single package.

Author
------

[](#author)

**Sina Zangiband**

Contact
-------

[](#contact)

- Website: [teksite.net](https://teksite.net) , [laratek.ir](https://laratek.ir) , [laratek.net](https://laratek.net)
- Email:

Contact
-------

[](#contact-1)

- Website: [teksite.net](https://teksite.net) , [laratek.ir](https://laratek.ir) , [laratek.net](https://laratek.net)
- Email:

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

[](#installation)

### Compatibility

[](#compatibility)

Laravel VersionPackage Version11.x^1.012.x^2.013.x^3.0### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command:

```
  composer require teksite/module
```

#### Note on `wikimedia/composer-merge-plugin`

[](#note-on-wikimediacomposer-merge-plugin)

If prompted with:

```
Do you trust "wikimedia/composer-merge-plugin" to execute code and wish to enable it now?

```

Press `y` and Enter. This plugin is required to merge `composer.json` files from modules.

#### Note on wikimedia/composer-merge-plugin

[](#note-on-wikimediacomposer-merge-plugin-1)

If prompted with: `Do you trust "wikimedia/composer-merge-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]`Press `y` and Enter. This plugin is required to merge `composer.json` files from modules.

### Step 2: Register the Service Provider

[](#step-2-register-the-service-provider)

**Note:** For Laravel 5.5 and above, auto-discovery handles this automatically. The following step is optional for newer versions.

#### Laravel 10 and above

[](#laravel-10-and-above)

Add the provider to `bootstrap/providers.php`:

```
