Download the PHP package tharindu/facade_generator without Composer

On this page you can find all versions of the php package tharindu/facade_generator. 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 facade_generator

Laravel Domain Generator

Laravel Domain Generator is a package that provides a convenient way to generate domain services and facades in your Laravel application.


Installation

You can install the package via Composer:

Usage

To generate a domain service and facade, use the make:domain Artisan command:

This command will create the following files in the domain directory:

You can then use these files to implement your domain logic.


Autoloading the Domain Directory

To ensure Laravel autoloads your custom domain directory, you need to update the composer.json file of your Laravel application. Follow these steps:

  1. Open your Laravel application's composer.json file.

  2. Locate the autoload section. It should look something like this:

  3. Add your domain directory to the PSR-4 autoloading section. If your domain directory is located at the root of your Laravel application, you can add it like this:

    Make sure to adjust the path "Domain\\" and "domain/" according to the actual structure of your application.

  4. Run composer dump-autoload to regenerate the Composer autoloader files:

Once you've made these changes, Laravel will autoload classes from your domain directory just like it does with the app directory, making your domain logic easily accessible throughout your application.


Functionalities

The package provides the following functionalities:

  1. Generation of Domain Service and Facade: Easily create domain services and facades using the make:domain command.
  2. CRUD Functionality: The generated service stubs include basic CRUD operations for managing domain entities.
    • Create: Create new domain entities.
    • Read: Retrieve specific domain entities.
    • Update: Update existing domain entities.
    • Delete: Delete domain entities.
    • List: Retrieve a list of domain entities.

Examples

Generating a Domain

To generate a domain service and facade named User, run:

This will create UserFacade.php and UserService.php in the domain directory.

Using the Generated Files

Once the files are generated, you can implement your domain logic inside the service methods. For example:


Contributing

Contributions are welcome! Please feel free to submit a pull request.


License

The Laravel Domain Generator is open-sourced software licensed under the MIT license.


All versions of facade_generator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version ^10.0|^11.0
phpunit/phpunit Version ^9.0|^10.0|^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 tharindu/facade_generator contains the following files

Loading the files please wait ....