Download the PHP package domain-driven-laravel/commands without Composer

On this page you can find all versions of the php package domain-driven-laravel/commands. 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 commands

Laravel support for domain driven design

Latest Version on Packagist License

PHP from Packagist Total Downloads

This packages makes it possible to use laravel artisan commands if you are using Laravel in a domain driven approach. We will still support every flag and option possible for the command by following the Laravel documentation. Since everyone is using their own way of Domain Driven Design the defaults are set to my structure but can be easily override using the config. Please check the config section for more information.

This package is also adding a lot of custom commands just to help you to develop Laravel in Domain Driven Approach

Installation

Configuration

By default, we are following the domain driven approach of my choice. But to make this package usable for everyone we encourage you to publish the config and tweak this package the way you want to use domain driven design.

Default config

Config explanation is added inside the published ddd-commands.php file

App layer Commands:

If you are not using sail please replace "sail" with "php" in commands below

Command Default output path Documentation
sail artisan make:resource {app_layer} {domain} {name} src/App/{app_layer}/{domain}/Resources Laravel Documentation

Domain Commands:

If you are not using sail please replace "sail" with "php" in commands below

Command Default output path Documentation
sail artisan make:model {domain} {name} src/Domain/{domain}/Models Laravel Documentation
sail artisan make:job {domain} {name} src/Domain/{domain}/Jobs Laravel Documentation
sail artisan make:mail {domain} {name} src/Domain/{domain}/Mails Laravel Documentation
sail artisan make:action {domain} {name} src/Domain/{domain}/Actions (None yet)
sail artisan make:dto {domain} {name} src/Domain/{domain}/DataTransferObjects (None yet)

All versions of commands with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 domain-driven-laravel/commands contains the following files

Loading the files please wait ....