PHPackages                             ibrohimbekmuhsin/my-api-starter-postgres - 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. [API Development](/categories/api)
4. /
5. ibrohimbekmuhsin/my-api-starter-postgres

ActiveLibrary[API Development](/categories/api)

ibrohimbekmuhsin/my-api-starter-postgres
========================================

v1.0.8(1y ago)019MITPHPPHP &gt;=8.4

Since Feb 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ibrohimbekMuhsin/my-api-starter-postgres)[ Packagist](https://packagist.org/packages/ibrohimbekmuhsin/my-api-starter-postgres)[ RSS](/packages/ibrohimbekmuhsin-my-api-starter-postgres/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (25)Versions (10)Used By (0)

My Api Starter
==============

[](#my-api-starter)

Starter kit for API with [Symfony](https://symfony.com/), [Doctrine](https://www.doctrine-project.org/), [Maker Bundle](https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html), [Migrations Bundle](https://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html), [Api-Platform](https://api-platform.com/) and [JWT-auth](https://jwt.io/).

Kit has also already created User entity with all crud routes

Kit has 3 docker containers: **php, nginx** and **postgresSQL**

[![poster](poster.png)](poster.png)

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

[](#installation)

Download the project
`composer create-project ibrohimbekmuhsin/my-api-starter-postgres --ignore-platform-reqs --no-scripts`

Go to the project directory
`cd my-api-starter-postgres`

Run docker containers
`docker compose up -d`

Install composer scripts:
`docker compose exec php composer install`

To install project run command:
`docker compose exec php bin/console mas:install`

**Done! You can open [](http://localhost:8555/api) via browser. By the way, you can change this port by changing `DOCKER_NGINX_PORT` variable in [.env](.env) file.**

Docker
------

[](#docker)

For enter to php container run `docker compose exec php bash`

For enter to postgres container run `docker compose exec postgres bash`

For enter to nginx container run `docker compose exec nginx bash`

You can change containers prefix by changing `DOCKER_PROJECT_NAME` variable in [.env](.env) file.

Also, you can change public ports of nginx and postgres by changing `DOCKER_NGINX_PORT` and `DOCKER_DATABASE_PORT`

Database allows connections only from localhost. Because of this when you use the project on production and want to connect to database from your computer you should connect via ssh bridge.

Cron
----

[](#cron)

You can use [docker/php/cron-file](docker/php/cron-file) for cron jobs. After you must re-build php container by running command:
`docker compose up -d --build`

Swagger
-------

[](#swagger)

You can change project name and description on swagger by editing file [config/packages/api\_platform.yaml](config/packages/api_platform.yaml)

Git Hook
--------

[](#git-hook)

If you don't use any deploying system you can do
`cp docker/other-files/git/hooks/post-merge .git/hooks`

In this way git always executes command `bin/console mas:deploy`. You can change this command in the file [src/Command/MasDeployCommand.php](src/Command/MasDeployCommand.php). This command will install requirements via composer, clear caches, change owner of ./var and ./public/media folders to www-data, will run migrations.

JWT keys
--------

[](#jwt-keys)

For use Json Web Token system you must create private and public keys. They have already created when you install project. You can re-create them with:

`bin/console mas:generate:jwtKeys`

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance50

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~6 days

Recently: every ~12 days

Total

9

Last Release

396d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.2

v1.0.8PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/09b74f894b515eee5a1b53e326e0bfb6c47e320264f9ed7cbc21c4dd934c36b2?d=identicon)[ibrohimbekMuhsin](/maintainers/ibrohimbekMuhsin)

---

Top Contributors

[![ibrohimbekMuhsin](https://avatars.githubusercontent.com/u/150169959?v=4)](https://github.com/ibrohimbekMuhsin "ibrohimbekMuhsin (10 commits)")

### Embed Badge

![Health badge](/badges/ibrohimbekmuhsin-my-api-starter-postgres/health.svg)

```
[![Health](https://phpackages.com/badges/ibrohimbekmuhsin-my-api-starter-postgres/health.svg)](https://phpackages.com/packages/ibrohimbekmuhsin-my-api-starter-postgres)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M646](/packages/sylius-sylius)[kadirov/api-starter-kit

443.9k](/packages/kadirov-api-starter-kit)[easycorp/easyadmin-demo

EasyAdmin Demo Application

145.7k](/packages/easycorp-easyadmin-demo)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[forumify/forumify-platform

121.8k11](/packages/forumify-forumify-platform)[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)
