PHPackages                             jafaripur/php-microservice-application-symfony - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. jafaripur/php-microservice-application-symfony

ActiveProject[Queues &amp; Workers](/categories/queues)

jafaripur/php-microservice-application-symfony
==============================================

php-microservice skeleton console application starter with Symfony for microservice node

13PHP

Since Aug 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jafaripur/php-microservice-application-symfony)[ Packagist](https://packagist.org/packages/jafaripur/php-microservice-application-symfony)[ RSS](/packages/jafaripur-php-microservice-application-symfony/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Microservice Application Skeleton
=================================

[](#microservice-application-skeleton)

[![prod-build](https://github.com/jafaripur/php-microservice-application-symfony/actions/workflows/build-prod.yml/badge.svg)](https://github.com/jafaripur/php-microservice-application-symfony/actions/workflows/build-prod.yml/badge.svg)[![test](https://github.com/jafaripur/php-microservice-application-symfony/actions/workflows/run-test.yml/badge.svg)](https://github.com/jafaripur/php-microservice-application-symfony/actions/workflows/run-test.yml/badge.svg)

`Symfony` console application used to write our processors of methods to responsible to client calling.

This application a template for microservice application and implement four methods of [jafaripur/php-microservice](https://github.com/jafaripur/php-microservice). Another library created for using this microservice methods [jafaripur/php-microservice-user-service](https://github.com/jafaripur/php-microservice-user-service).

For consuming and receiving data:

```
php bin/console user-service:listen
```

For sending tests messages, By using this client library (`jafaripur/php-microservice-user-service`):

```
php bin/console user-service:send-test
```

Create project
--------------

[](#create-project)

```
composer create-project "jafaripur/php-microservice-application-symfony dev-master" micro3
```

Production Build
----------------

[](#production-build)

This application can be run with `roadrunner` service plugin in production with Dockerfile `docker/Dockerfile.prod`, Production build with docker:

```
export DOCKER_BUILDKIT=1 && docker build -f "./docker/Dockerfile.prod" -t "micro3-prod:latest" .
```

After building, we can create a container or docker swarm service. The production docker image runs with `RoadRunner`. In this example we use this configuration for [RoadRunner](https://github.com/roadrunner-server/roadrunner), config exist in `.rr.yaml` file.

```
version: "2.7"

service:
  topics:
    command: "php bin/console user-service:listen first-consumer"
    process_num: 10
    exec_timeout: 0
    remain_after_exit: true
    restart_sec: 5

  emits:
    command: "php bin/console user-service:listen second-consumer"
    process_num: 2
    exec_timeout: 0
    remain_after_exit: true
    restart_sec: 5

logs:
  mode: production
  encoding: console
```

With this RoadRunner service plugin we can run several consumer with several instance.

For creating docker container from builded image:

```
docker run -d --init \
    --name micro3-container \
    --restart unless-stopped \
    micro3-prod:latest
```

And for swarm service:

```
docker service create --name "micro3-service" \
    --replicas 2 \
    --update-delay 10s \
    micro3-prod:latest
```

Test
----

[](#test)

```
# Build test containers
docker-compose build --build-arg APP_SECRET=123456

# Run test
docker-compose up micro

# Stop and remove created containers
docker-compose down
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef5abdd87a0fe17b2b42f341352ff12da0a000ef3a8df121e8eeabb82c859c4?d=identicon)[jafaripur](/maintainers/jafaripur)

---

Top Contributors

[![jafaripur](https://avatars.githubusercontent.com/u/5066430?v=4)](https://github.com/jafaripur "jafaripur (6 commits)")

---

Tags

amqpmicroservicephprabbitmqsymfony

### Embed Badge

![Health badge](/badges/jafaripur-php-microservice-application-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/jafaripur-php-microservice-application-symfony/health.svg)](https://phpackages.com/packages/jafaripur-php-microservice-application-symfony)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M170](/packages/react-async)

PHPackages © 2026

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