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 32% of packages

Maintenance45

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

431d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9905d367090ede0b01f16e61ab0cc0daec55206ce99c69d57b397c61031c3295?d=identicon)[seyedmohammadhosseini](/maintainers/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

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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