PHPackages                             sirix/project-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sirix/project-template

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sirix/project-template
======================

Sirix Template for Microservices

0.0.5(6mo ago)05MITPHPPHP ~8.4.0CI passing

Since Mar 11Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/sirix777/project-template)[ Packagist](https://packagist.org/packages/sirix/project-template)[ Fund](https://buymeacoffee.com/sirix)[ GitHub Sponsors](https://github.com/sirix777)[ RSS](/packages/sirix-project-template/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (30)Versions (6)Used By (0)

Project Template
----------------

[](#project-template)

Example service that should be used as a starting point for new projects.

This template uses PHP (≥ 8.4) and integrates several libraries and frameworks out of the box, including:

- Mezzio (PSR-15 middleware framework)
- Laminas (components for service management, configuration, etc.)
- Cycle ORM (for database interactions)
- Monolog (for logging)
- PHPUnit (for testing)
- Code quality tools (PHPStan, Rector, PHP-CS-Fixer, Deptrac)

The project is built on a modular architecture and consists of the following modules:

- ApiGateway (handles API requests and routing)
- Common (contains shared functionality)
- ExampleModule (demonstrates module implementation)

The modules apply the principle of clean architecture, they are divided into layers:

- App (Application layer - contains use cases and application services)
- Domain (Domain layer - contains business logic, entities, and domain services)
- Infra (Infrastructure layer - contains implementations of repositories, external services, etc.)

### Getting Started

[](#getting-started)

#### Requirements

[](#requirements)

- PHP 8.4 or higher
- Composer

#### Creating a New Project

[](#creating-a-new-project)

Create a new project based on this template:

```
composer create-project sirix/project-template my-new-project-name --ignore-platform-reqs
```

### Available Commands

[](#available-commands)

#### Development Mode

[](#development-mode)

- Enable development mode:

```
composer development-enable
```

- Disable development mode:

```
composer development-disable
```

- Check development mode status:

```
composer development-status
```

#### Mezzio Commands

[](#mezzio-commands)

- Show all available Mezzio commands:

```
composer mezzio
# or
./vendor/bin/laminas
```

#### Database Commands

[](#database-commands)

- Run database migrations:

```
./vendor/bin/laminas cycle:migrator:run
```

- Rollback database migrations:

```
./vendor/bin/laminas cycle:migrator:rollback
```

- Create a new migration:

```
./vendor/bin/laminas cycle:migrator:create PascalCaseMigrationName
```

- Create a new database seed:

```
./vendor/bin/laminas cycle:seed:create PascalCaseSeedName
```

- Run database seeds:

```
./vendor/bin/laminas cycle:seed
```

- Clear Cycle ORM cache:

```
./vendor/bin/laminas cycle:cache:clear
```

#### Code Quality Commands

[](#code-quality-commands)

- Run all code quality checks and tests:

```
composer check
```

- Check code style:

```
composer cs-check
```

- Fix code style:

```
composer cs-fix
```

- Run Rector (static analysis and automatic refactoring):

```
composer rector
```

- Run PHPStan (static analysis):

```
composer phpstan
```

- Run Deptrac to check layer dependencies:

```
composer deptrac-layers
```

- Run Deptrac to check module dependencies:

```
composer deptrac-modules
```

#### Testing Commands

[](#testing-commands)

- Run tests:

```
composer test
```

- Run tests with coverage report:

```
composer test-coverage
```

#### Server Commands

[](#server-commands)

- Start development server:

```
composer serve
```

#### Utility Commands

[](#utility-commands)

- Clear config cache:

```
composer clear-config-cache
```

### Contributing

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

### License

[](#license)

This project is licensed under the MIT License - see the composer.json file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance67

Regular maintenance activity

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Total

5

Last Release

194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ecccf9003c061847e877eeea3bdf1b382f6f9dbb11d33112d6b2740bf0533f9?d=identicon)[sirix777](/maintainers/sirix777)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sirix-project-template/health.svg)

```
[![Health](https://phpackages.com/badges/sirix-project-template/health.svg)](https://phpackages.com/packages/sirix-project-template)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
