Download the PHP package methorz/mezzio-hexagonal-skeleton without Composer

On this page you can find all versions of the php package methorz/mezzio-hexagonal-skeleton. 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 mezzio-hexagonal-skeleton

Mezzio Skeleton with Architecture Choice

Mezzio skeleton with architecture choice: Minimal or Hexagonal (DDD). Modern PHP 8.4+ development with optional packages.

PHP Version Mezzio Docker

Overview

A modern Mezzio skeleton that lets you choose your architecture during setup:

Architecture Options

During the interactive setup, you'll choose between two architectural approaches:

🏗️ Minimal Architecture

Best for: Small to medium projects, APIs, microservices, rapid prototyping

🎯 Hexagonal Architecture (Ports & Adapters / DDD)

Best for: Complex domains, large teams, long-term maintainability

After setup, your project will have an architecture-specific README with detailed guidance for your chosen approach.

Prerequisites

Getting Started

With Composer (One Command)

Note: If you have PHP < 8.4 on your host machine, use:

This is safe because everything runs in Docker with PHP 8.4.

That's it! The setup will automatically:

No PHP required on your host machine - everything runs in Docker!

Without Composer (Two Commands)

Same automated process runs from here. Visit http://localhost:8081 when complete.

What Happens During Setup

The setup process is fully automated:

  1. Architecture selection - Choose between Minimal or Hexagonal architecture
  2. Interactive package selection - Choose which optional packages to install (Monolog, Validator, Database, etc.)
  3. Package configuration - ConfigProviders and middleware automatically registered
  4. Dependency installation - Selected packages installed via Docker
  5. Docker image building - Custom PHP 8.4 + Nginx images built
  6. Container startup - Application containers started
  7. Development mode - Development environment configured
  8. Verification & cleanup - Setup verified, then setup files automatically removed

After successful setup, the project is production-ready with no setup artifacts left behind.

Daily Development

Application URL: http://localhost:8081

Troubleshooting

If setup fails:

Optional Packages

The skeleton includes an interactive installer that prompts for optional packages when you create a new project. The installer will:

Core Infrastructure

MethorZ Packages

Database Layer

Adding Packages Later

To add packages after initial setup:

Project Structure

The project structure depends on your architecture choice:

Example (Minimal Architecture):

See your architecture-specific README after project creation for detailed structure documentation.

Command Reference

All commands run inside Docker containers - no PHP required on your host machine!

Adding Your Code

  1. Add handlers to backend/src/App/Application/Handler/
  2. Register routes in backend/src/App/Application/Config/ConfigProvider.php
  3. Add services and factories as needed

Example handler:

Configuration

Environment configuration files are in backend/config/autoload/:

Quality Tools

All quality tools are pre-configured and ready to use:

Run quality checks:

This runs: code style check → static analysis → unit tests (all inside Docker)

Docker Services

Container Naming

Docker Compose automatically names containers based on your project folder name:

Port Configuration

Each project needs unique ports if running multiple projects simultaneously. Edit your .env file:

License

MIT License - see LICENSE.md


Built with Mezzio and modern PHP practices


All versions of mezzio-hexagonal-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
laminas/laminas-config-aggregator Version ^1.18
laminas/laminas-diactoros Version ^3.8
laminas/laminas-servicemanager Version ^4.0
mezzio/mezzio Version ^3.25
mezzio/mezzio-fastroute Version ^3.11
mezzio/mezzio-helpers Version ^5.20
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 methorz/mezzio-hexagonal-skeleton contains the following files

Loading the files please wait ...