Download the PHP package laravel-architex/architecture-generator without Composer

On this page you can find all versions of the php package laravel-architex/architecture-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 architecture-generator

Laravel Architex - Architecture Generator

Laravel Architex is a powerful tool that helps Laravel developers quickly initialize project structure based on popular architecture patterns, automatically generating folders, classes, interfaces, service providers, and necessary files based on templates.

🚀 Key Features

Supported Architectures:

Additional Features:

📦 Installation

System Requirements:

CI/CD Status:

Check Comments Code Quality Test Architectures Release

Quick Setup (Recommended)

Manual Installation

For Development/Testing

Setup RepositoryService

Quick Start with RepositoryService:

🛠️ Usage

1. Repository Pattern

Laravel Architex generates a complete repository pattern with clean architecture:

Quick Start

Generated Structure

Key Features

BaseRepository Methods

Usage Examples

Usage Examples:

1. Using Repository Pattern with Dependency Injection

2. Using Service Layer

3. Using Repository Directly

4. Auto Registration

Service providers are automatically registered in config/app.php:

5. Complete Repository Methods

6. Benefits

// Sync Relations Repository::model(User::class)->sync(1, 'roles', [1, 2, 3]); Repository::model(User::class)->syncWithoutDetaching(1, 'roles', [1, 2, 3]); bash

Create service for User

php artisan make:service User

Overwrite existing files

php artisan make:service User --force bash

Create complete DDD module

php artisan make:ddd UserManagement

Create only specific layers

php artisan make:ddd UserManagement --layers=domain,application

Overwrite existing files

php artisan make:ddd UserManagement --force

app/ ├── Domain/ │ └── UserManagement/ │ ├── Entities/ │ ├── Repositories/ │ ├── Services/ │ ├── Events/ │ └── Exceptions/ ├── Application/ │ └── UserManagement/ │ ├── Services/ │ ├── Commands/ │ ├── Queries/ │ └── Handlers/ ├── Infrastructure/ │ └── UserManagement/ │ ├── Repositories/ │ ├── Services/ │ ├── Persistence/ │ └── External/ └── UI/ └── UserManagement/ ├── Controllers/ ├── Requests/ ├── Resources/ └── Middleware/ bash

Create complete CQRS structure

php artisan make:cqrs CreateUser

Create only command

php artisan make:command CreateUser

Create only query

php artisan make:query GetUser

Overwrite existing files

php artisan make:cqrs CreateUser --force bash

Option A: Create both event and listener (recommended)

php artisan architex:event-bus UserCreated

Option B: Use Laravel defaults (create separately)

php artisan make:event UserCreatedEvent php artisan make:listener UserCreatedListener --event="App\Events\UserCreatedEvent" bash

Create complete modular structure

php artisan architex:modular UserManagement

Create with specific options

php artisan architex:modular UserManagement --with-tests --with-migrations --with-seeders --with-routes --with-config

Create with custom path and namespace

php artisan architex:modular UserManagement --path=app/Modules --namespace=App\Modules

Create with all features

php artisan architex:modular UserManagement --with-tests --with-migrations --with-seeders --with-routes --with-config --with-views --with-assets

Overwrite existing files

php artisan architex:modular UserManagement --force

app/Modules/UserManagement/ ├── Controllers/ │ └── UserManagementController.php ├── Models/ │ └── UserManagement.php ├── Services/ │ └── UserManagementService.php ├── Repositories/ │ └── UserManagementRepository.php ├── Providers/ │ └── UserManagementServiceProvider.php ├── Routes/ │ └── web.php ├── Config/ │ └── usermanagement.php ├── Views/ (optional) ├── Assets/ (optional) ├── Database/ │ ├── Migrations/ │ │ └── 2024_01_01_000000_create_user_managements_table.php │ └── Seeders/ │ └── UserManagementSeeder.php ├── Tests/ │ └── UserManagementTest.php └── README.md bash

Create complete hexagonal structure

php artisan architex:hexagonal User

Create with specific options

php artisan architex:hexagonal User --with-tests --with-migrations --with-routes

Create with custom path and namespace

php artisan architex:hexagonal User --path=app/Hexagonal --namespace=App\Hexagonal

Create with all features

php artisan architex:hexagonal User --with-tests --with-migrations --with-routes --with-config

Overwrite existing files

php artisan architex:hexagonal User --force

app/Hexagonal/User/ ├── Domain/ │ ├── Entities/ │ │ └── User.php │ └── Ports/ │ ├── UserRepositoryPort.php │ └── UserServicePort.php ├── Application/ │ └── Services/ │ └── UserApplicationService.php ├── Infrastructure/ │ ├── Adapters/ │ │ └── UserRepositoryAdapter.php │ └── database/migrations/ │ └── create_users_table.php ├── UI/ │ ├── Adapters/ │ │ └── UserControllerAdapter.php │ └── routes/ │ └── user_routes.php ├── Tests/ │ └── UserHexagonalTest.php └── UserServiceProvider.php bash

Publish config file

php artisan vendor:publish --tag=architex-config bash php artisan vendor:publish --tag=architex-config bash

Install dependencies

composer install

Run all tests

./run-tests.sh all

Run with coverage

./run-tests.sh coverage

Run specific tests

./run-tests.sh specific tests/ArchitectureGeneratorTest.php bash

Run all tests

./vendor/bin/phpunit

Run unit tests only

./run-tests.sh unit

Run integration tests only

./run-tests.sh integration

Run tests in watch mode

./run-tests.sh watch

Run with verbose output

./vendor/bin/phpunit --verbose

Run specific test method

./vendor/bin/phpunit --filter test_can_generate_repository



## 📚 Documentation

- **[README.md](README.md)** - Main documentation and usage guide
- **[DEVELOPMENT.md](DEVELOPMENT.md)** - Development setup, testing, and contributing guide
- **[TESTING.md](TESTING.md)** - Detailed testing information
- **[INSTALLATION_GUIDE.md](INSTALLATION_GUIDE.md)** - Step-by-step installation guide
- **[.github/README.md](.github/README.md)** - GitHub Actions workflows guide

## 🆘 Support

If you encounter issues or have questions, please:

- Create an issue on GitHub
- Contact us via email: [email protected]
- Join our Discord community

---

**Laravel Architex** - Help you build Laravel architecture quickly and professionally! 🚀 

All versions of architecture-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1
laravel/framework Version ^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0
illuminate/filesystem Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^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 laravel-architex/architecture-generator contains the following files

Loading the files please wait ...