Download the PHP package saeedhosan/module-support without Composer

On this page you can find all versions of the php package saeedhosan/module-support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-support

Module Support for Laravel

Your friendly companion for building modular Laravel applications. This package makes it dead simple to organize your Laravel app into self-contained modules with their own structure.

What is this?

Think of modules as building blocks for your Laravel app. Instead of dumping everything into app/Http/Controllers, app/Models, and friends, you can group related functionality into modules. Each module can have its own controllers, models, views, migrations—everything it needs to work independently.

This package gives you the tools to discover, manage, and work with those modules effortlessly.

Requirements

Installation

Install via Composer:

The service provider registers itself automatically, so you're good to go—no extra setup needed.

Configuration

Want to customize how modules are organized? Publish the config file:

Here's what you can tweak in config/module.php:

Quick Start

Module Structure

A typical module looks like this:

Each module has its own composer.json that defines its namespace and autoloading—just like a regular package.

Working with Modules

Get a specific module:

Loop through all modules:

Check if a module exists:

Get module info from its composer.json:

Helpers

We've got a couple of handy helpers up our sleeves:

Blade Components

This package includes a <x-module> Blade component for conditionally rendering content based on module status:

The component accepts these attributes:

If the module is not active, it displays a placeholder message. You can also customize the wrapper styles using standard HTML attributes:

Blade Directives

The package provides a @module directive for conditionally including content:

Bootstrapping Module Providers

If your module has service providers defined in its composer.json, you can register them manually:

Or use the manager:

Testing

The package comes with a solid test suite. Make sure everything still works:

Contributing

Found a bug or want to add a feature? Pull requests are totally welcome. Just make sure the tests pass before submitting.


Module support was created by Saeed Hosan under the MIT license.


All versions of module-support with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.0 || ^12.0 || ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package saeedhosan/module-support contains the following files

Loading the files please wait ...