PHPackages                             microparts/microservice-starter-php - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. microparts/microservice-starter-php

AbandonedArchivedProject[DevOps &amp; Deployment](/categories/devops)

microparts/microservice-starter-php
===================================

Default template for quick writing microservice.

1.0.0(7y ago)161AGPL-3.0-onlyPHPPHP &gt;=7.2

Since Mar 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/microparts/microservice-starter-php)[ Packagist](https://packagist.org/packages/microparts/microservice-starter-php)[ RSS](/packages/microparts-microservice-starter-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Microservice starter for PHP
----------------------------

[](#microservice-starter-for-php)

This starter designed for quick start of microservice development.

Available from the box:

- high performance
- web server (swoole extension required)
- supports set of corporate standards like as: [Configuration package](https://github.com/microparts/configuration-php), [Pagination](https://github.com/microparts/paginateformatter-php), [ServiceInfo](https://github.com/microparts/igni-support-php/blob/master/src/Modules/ServiceInfoModule.php), [Healthcheck](https://github.com/microparts/igni-support-php/blob/master/src/Modules/HealthcheckModule.php), [i18n](https://github.com/microparts/i18n-php), [Logging](https://github.com/microparts/igni-support-php/blob/master/src/Modules/LoggerModule.php) and so on.
- optimized docker image with latest PHP version configured to maximum performance
- instrument to automatically migration and database seeding at app starts (configurable, enabled by default)
- single error handler
- configured PHPUnit for writing Unit-tests
- configured docker-compose

Usage
-----

[](#usage)

```
composer create-project microparts/microservice-starter-php app_name
```

Run
---

[](#run)

```
php index.php
# or
docker-compose build
docker-compose up -d
```

Hello
-----

[](#hello)

Default hello world.

```
$ curl http://0.0.0.0:8080/example | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    16  100    16    0     0    616      0 --:--:-- --:--:-- --:--:--   640
{
  "punks": "hoy!"
}
```

Default service info:

```
$ curl http://0.0.0.0:8080/ | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   227  100   227    0     0  31642      0 --:--:-- --:--:-- --:--:-- 32428
{
  "service": {
    "name": "Microservice starter, PHP",
    "about": "Default template for quick writing microservice.",
    "version": "0.1.0",
    "docs": null,
    "contacts": "ask@teamc.io",
    "copyright": "teamc.io © 2019"
  },
  "message": "hello stranger!"
}
```

Makefile usage
--------------

[](#makefile-usage)

1. Replace docker-image name in the `Makefile` file
2. Build docker-image

```
make image
```

3. Run docker image

```
make run
```

4. Or run docker image with custom stage, for example I use `local` stage:

```
make STAGE=local run
```

Notices
-------

[](#notices)

- For enabling connection to the PostgreSQL database uncomment the line in `./bootstrap.php` file.
- Information about this service located at `./configuration/defaults/service.yaml`.

Tests
-----

[](#tests)

```
vendor/bin/phpunit
```

License
-------

[](#license)

GNU GPL v3

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

2620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d8eff4a3e66b58f3e2af56fe948035469de1e19ac29c532d65c681955bbd18?d=identicon)[Roquie](/maintainers/Roquie)

---

Top Contributors

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

---

Tags

dockerfastmicroservicephpphp7swoole

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/microparts-microservice-starter-php/health.svg)

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

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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