Download the PHP package salah3id/address-domains without Composer

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

Laravel-Domains

Latest Version on Packagist Scrutinizer Coverage Quality Score Total Downloads

Laravel address-domains
9.0 ^1.0

salah3id/address-domains is a Laravel package which created to manage your large Laravel app using domains with repository design pattern to abstract the data layer, making our application more flexible to maintain. Domain is like a Laravel package, it has some views, controllers or models. This package is supported and tested in Laravel 9.

This package is a re-published, re-organised of nWidart/laravel-modules, which isn't support repository design pattern.

Install

To install through Composer, by run the following command:

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

Autoloading

By default, the domain classes are not loaded automatically. You can autoload your domains using psr-4. For example:

Tip: don't forget to run composer dump-autoload afterwards.

Creating a Domain

Generate your first domain using :

The following structure will be generated.

app/
bootstrap/
vendor/
Domains/
│   ├── Address/             
│   │   ├── Assets/             
│   │   ├── Config/             
│   │   ├── Console/             
│   │   ├── Database/
│   │   │   ├── Migrations/ 
│   │   │   ├── Seeders/
│   │   ├── Entities/
│   │   ├── Http/
│   │   │   ├── Controllers/
│   │   │   ├── Middleware/
│   │   │   ├── Requests/
│   │   ├── Providers/
│   │   │   ├── AddressServiceProvider.php
│   │   │   ├── RepositoryServiceProvider.php
│   │   │   ├── RouteServiceProvider.php
│   │   ├── Resources/
│   │   │   │   ├── assets/
│   │   │   │   │   ├── js/
│   │   │   │   │   │   ├── app.js
│   │   │   │   │   ├── sass/
│   │   │   │   │   │   ├── app.scss
│   │   │   │   ├── lang/
│   │   │   │   ├── views/
│   │   ├── Routes/
│   │   │   ├── api.php
│   │   │   ├── web.php
│   │   ├── Repositories/
│   │   ├── Tests/ 
│   │   ├── composer.json
│   │   ├── module.json
│   │   ├── package.json
│   │   ├── webpack.mix.js     
│   │   └──
│   └── Other Domains ...                    
└── ... etc 

Generate multiple domains using :

domain:make command options

Parameter Description
--plain , -p By default when you create a new domain, the command will add some resources like a controller, seed class, service provider, etc. automatically. If you don't want these, you can add --plain flag, to generate a plain domain.

Naming convention

Because we are autoloading the modules using psr-4, we strongly recommend using StudlyCase convention.

Utility commands

domain:make

Generate a new domain

domain:make

Generate multiple domains at once.

domain:use

This allows you to not specify the doamin name on other commands requiring the module name as an argument.

domain:unuse

This unsets the specified domain that was set with the domain:use command.

domain:list

List all available domains.

domain:migrate

Migrate the given domain, or without a domain an argument, migrate all domains.

domain:migrate-rollback

Rollback the given domain, or without an argument, rollback all domains.

domain:migrate-refresh

Refresh the migration for the given module, or without a specified module refresh all modules migrations.

domain:migrate-reset

Reset the migration for the given domain, or without a specified domain reset all domains migrations.

domain:seed

Seed the given domain, or without an argument, seed all domains

domain:publish-migration

Publish the migration files for the given domain, or without an argument publish all domains migrations.

domain:publish-config

Publish the given domain configuration files, or without an argument publish all domains configuration files.

domain:publish-translation

Publish the translation files for the given domain, or without a specified domain publish all domains migrations.

domain:enable

Enable the given domain.

domain:disable

Disable the given domain.

domain:update

Update the given domain.

Credits

License

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


All versions of address-domains with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
spatie/laravel-query-builder Version ^6.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 salah3id/address-domains contains the following files

Loading the files please wait ...