Download the PHP package plin-code/laravel-clean-architecture without Composer

On this page you can find all versions of the php package plin-code/laravel-clean-architecture. 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 laravel-clean-architecture

๐Ÿ—๏ธ Laravel Clean Architecture Package

A Laravel package to easily implement Clean Architecture in your projects. ๐Ÿš€

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

โš™๏ธ Configuration

Publish the configuration files and stubs:

๐ŸŽฏ Usage

๐Ÿ—๏ธ Installing Clean Architecture structure

This command will create:

๐Ÿ†• Creating a new domain

This command will generate:

After generating the core files, make-domain prompts interactively for optional components. You can choose to also generate an Observer, Listener, Job, Mail, Notification, and Export for the domain. Each prompt can be answered independently, so you only generate what your domain needs.

โœ… Architecture validation

This command checks your codebase for layer dependency violations (for example, Domain code importing from Infrastructure). It returns exit code 1 when violations are found, making it suitable for use in CI pipelines.

๐Ÿ› ๏ธ Available commands

๐Ÿ“‚ Project structure after clean-arch:install

๐Ÿ“‚ Generated structure after clean-arch:make-domain User

๐Ÿ›๏ธ Clean Architecture Principles

This package implements Clean Architecture principles:

  1. ๐ŸŽฏ Domain Layer: Contains business logic and entities
  2. โšก Application Layer: Contains use cases and application logic
  3. ๐Ÿ—๏ธ Infrastructure Layer: Contains implementation details (controllers, database, etc.)

๐Ÿ”— Dependencies

๐Ÿ’ก Examples

๐Ÿ›๏ธ Creating a Product domain

๐ŸŽฎ Using in controller

โš™๏ธ Configuration

The configuration file config/clean-architecture.php allows you to customize:

๐Ÿ› ๏ธ Development

This package uses several tools to maintain code quality:

๐Ÿ”ง Code Quality Tools

๐Ÿ“œ Available Scripts

๐Ÿš€ Development Setup

  1. ๐Ÿ“ฅ Clone the repository
  2. ๐Ÿ“ฆ Install dependencies: composer install
  3. โœจ Run quality checks: composer quality

๐Ÿค Contributing

Pull requests are welcome! ๐ŸŽ‰ For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate and follow our Contributing Guidelines. ๐Ÿ“

๐Ÿ“„ License

MIT ๐Ÿ“œ


All versions of laravel-clean-architecture with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/console Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
illuminate/filesystem Version ^12.0 || ^13.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 plin-code/laravel-clean-architecture contains the following files

Loading the files please wait ...