Download the PHP package dotswan/modules-auto-discover without Composer

On this page you can find all versions of the php package dotswan/modules-auto-discover. 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 modules-auto-discover

Modules Auto-Discover

Automatically discover and register configurations, translations, and more from your nWidart/laravel-modules modules.

Table of Contents

Introduction

When using the nWidart/laravel-modules package for modular Laravel applications, you might have noticed that configurations, translations, and other resources within your modules are not automatically discovered and registered by Laravel and you need to register/discover them in the ModuleServiceProvider for every module. This package bridges that gap by automatically discovering and registering these resources, simplifying your module development process.

With Modules Auto-Discover, you no longer need to manually call methods like registerConfigs() or registerTranslationss() in your module service providers. The package handles the discovery and registration automatically during the application's boot process.

Installation

You can install the package via Composer:

The package uses Laravel's auto-discovery feature, so no additional steps are required to register the service provider.

Usage

Once installed, the package will automatically discover and register the following resources in your enabled modules:

Auto-Discovery

By default, auto-discovery is enabled for all your modules. This means that any resources placed in the standard directories will be automatically registered without any additional configuration.

For example, placing a configuration file at Modules/YourModule/Config/permission.php will make its contents available via Laravel's config() helper:

Note: nWidart Modules will create a config.php file for every module by default (if you enabled to generate), we recommend you to create a separate file for each configuration to avoid conflicts (don't use config.php for all modules)

Disabling Auto-Discovery per Module

If you want to disable auto-discovery for a specific module, you can do so by adding an "auto-discovery": false entry to your module's module.json file:

With auto-discovery set to false, the package will skip the automatic registration of resources for that module. You can then manually register resources in your module's service provider if needed.

To-Do

Contributing

Contributions are welcome and encouraged! Please follow these steps to contribute:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix:

  3. Make your changes.
  4. Run composer lint to format your code with Pint rules.
  5. Run composer test to run tests or composer test-coverage to generate a coverage report.
  6. Commit your changes with clear messages.
  7. Push your branch to your forked repository:

  8. Open a pull request on the main repository.

Please make sure to write tests for your changes and ensure all existing tests pass.

License

The MIT License (MIT). Please see License File for more information.

Support

If you encounter any issues or have questions, please contact us via GitHub repository.


All versions of modules-auto-discover with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
nwidart/laravel-modules Version ^11.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 dotswan/modules-auto-discover contains the following files

Loading the files please wait ....