PHPackages                             afto/microservice - 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. [Framework](/categories/framework)
4. /
5. afto/microservice

ActiveProject[Framework](/categories/framework)

afto/microservice
=================

A microservice project for PHP

v1.0.0(1y ago)02MITPHP

Since Mar 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/seyedmohammadhosseini/afto)[ Packagist](https://packagist.org/packages/afto/microservice)[ RSS](/packages/afto-microservice/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (2)Used By (0)

Afto.online
===========

[](#aftoonline)

Afto is an optimized solution for PHP developers supporting the PSR-4 autoloading standard. It is designed for easy integration, microservice architecture, and optimized performance. This project provides a solid foundation for PHP developers to create scalable and maintainable applications.

Features
--------

[](#features)

- Supports PSR-4 autoloading standard, making it easy to organize classes into namespaces and directories.
- Microservice-based architecture for scalable application development.
- Easy integration with Docker for containerized deployments.
- Optimized and well-tested performance for production use.

Installation
------------

[](#installation)

### 1. Create a New Project

[](#1-create-a-new-project)

To create a new project, run the following command:

```
composer create-project afto/microservice
```

This will create a new project using the `afto/microservice` template.

### 2. Install Dependencies

[](#2-install-dependencies)

Once the project is created, navigate into the project directory and install the necessary dependencies using Composer:

```
composer install
```

### 3. Start the PHP Built-in Server

[](#3-start-the-php-built-in-server)

Once the dependencies are installed, you can start the PHP built-in server for testing purposes:

```
php -S localhost:8000
```

### 4. Run Docker

[](#4-run-docker)

To run the application inside Docker, use the following command to build and start the Docker container in detached mode:

```
docker-compose up --build -d
```

This will build the Docker container and run it in the background.

### 5. PHPUnit Testing

[](#5-phpunit-testing)

To run the PHPUnit tests and check the functionality of your code, navigate to the `core` directory and use the following command:

```
cd core ../vendor/bin/phpunit
```

### 6. Remove Docker

[](#6-remove-docker)

To clean up your Docker environment and remove all stopped containers, unused networks, and volumes, use the following command:

```
docker system prune -a --volumes
```

This will remove unused Docker resources and free up disk space.

### 7. Run psalm.dev

[](#7-run-psalmdev)

To check the code quality and find potential issues, run Psalm, a static analysis tool for PHP:

```
vendor/bin/psalm
```

This will analyze your code and provide suggestions to improve it.

GitHub Repository
-----------------

[](#github-repository)

Visit the [Afto GitHub Repository](https://github.com/seyedmohammadhosseini/afto) for more details, issues, pull requests, and contributions.

### Repository Statistics

[](#repository-statistics)

- **Stars**: `{{stargazers_count}}`
- **Forks**: `{{forks_count}}`
- **Open Issues**: `{{open_issues_count}}`

Contributing
------------

[](#contributing)

We welcome contributions to Afto. If you would like to improve or report bugs in the project, please open an issue or submit a pull request on GitHub.

To contribute:

1. Fork the repository
2. Create a new branch (`git checkout -b feature/your-feature`)
3. Make your changes
4. Commit your changes (`git commit -am 'Add a new feature'`)
5. Push to the branch (`git push origin feature/your-feature`)
6. Create a new pull request

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

Crafted with ❤️ by **Seyed Mohammad Hosseini**

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance42

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

476d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3972120?v=4)[Seyed Mohammad Hosseini](/maintainers/seyedmohammadhosseini)[@seyedmohammadhosseini](https://github.com/seyedmohammadhosseini)

---

Top Contributors

[![seyedmohammadhosseini](https://avatars.githubusercontent.com/u/3972120?v=4)](https://github.com/seyedmohammadhosseini "seyedmohammadhosseini (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/afto-microservice/health.svg)

```
[![Health](https://phpackages.com/badges/afto-microservice/health.svg)](https://phpackages.com/packages/afto-microservice)
```

###  Alternatives

[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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