Download the PHP package anteris-dev/domain-driven-laravel without Composer

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

Transforms a default Laravel application into a Domain Driven Experience

This package is inspired by the work of Brent Roose and the Spatie team. Particularly by his Domain Driven Development blog posts.

By utilizing the commands provided in this package, you can convert your Laravel application into a Domain Driven experience by reorganizing the app structure and updating namespaces. Laravel Fortify and Jetstream are supported.

This package also provides several useful make commands for generating classes within the domain.

To Install

To Setup your Domain

First you will need to reorganize your application. You can do this by running the domain setup command:

Where {domain} is the desired name of your domain.

This will perform the following actions.

  1. Create a directory in app with the name of your domain
  2. If Fortify or Jetstream is installed, move their Actions into the domain directory
    • The namespace of these actions is determined by whether or not Jetstream has team support installed. If team support is enabled, they will be placed in the Team namespace in your domain. Otherwise they will be placed in the User namespace
  3. Move models into their own namespace within this domain directory
    • The namespace of the models is determined by the singular form of their filename. Models will be placed under this namespace in a Models directory
    • If Jetstream is installed with teams support, Jetstream models will be moved to the Team namespace
  4. Move Laravel files to app/Support
  5. Create an application layer directory at app/App
  6. Update the bootstrap file to look for Laravel under app/Support
  7. Update autoloading in composer
  8. Store the current domain in composer under extra.laravel.domain for use during file generation and namespace updates
  9. Dump composer autoloads

Make Commands

This package provides the following make commands for your ease.

Command Description
make:app:controller {layer} {name} Creates a new application controller in the app/App/{layer}/Controllers directory.
make:app:viewmodel {layer} {name} Creates a new application view model in the app/App/{layer}/ViewModels directory.
make:domain:action {subdomain} {name} Creates a new action in the app/{domain}/{subdomain}/Actions directory.
make:domain:dto {subdomain} {name} Creates a new data transfer object in the app/{domain}/{subdomain}/DataTransferObjects directory.
make:domain:model {subdomain} {name} Creates a new model in the app/{domain}/{subdomain}/Models directory.

All versions of domain-driven-laravel with dependencies

PHP Build Version
Package Version
Requires illuminate/console Version ^8.0
illuminate/database Version ^8.0
illuminate/filesystem Version ^8.0
illuminate/support 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 anteris-dev/domain-driven-laravel contains the following files

Loading the files please wait ....