PHPackages                             pbaszak/api-skeleton - 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. pbaszak/api-skeleton

ActiveProject[API Development](/categories/api)

pbaszak/api-skeleton
====================

A minimal project that allows you to quickly create a new cli project based on Symfony using useful tools: standard-version, php-cs-fixer, phpstan, phpunit.

1.5.0(7mo ago)117MITPHPPHP &gt;=8.2CI failing

Since Nov 18Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/patrykbaszak/api-skeleton)[ Packagist](https://packagist.org/packages/pbaszak/api-skeleton)[ RSS](/packages/pbaszak-api-skeleton/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (1)Versions (17)Used By (0)

API Skeleton
============

[](#api-skeleton)

A minimal project that allows you to quickly create a new api project based on Symfony using useful tools: `swagger`, `standard-version`, `php-cs-fixer`, `phpstan`, `phpunit`, `docker`, `xdebug` and my own `starting script`. It is ready to support debugging with Visual Studio Code - just look into `.env.local` ;).

### WHY?

[](#why)

### How to start

[](#how-to-start)

Create directory for Your project, get in (`cd {Your directory}`) and run command:

```
composer create-project pbaszak/api-skeleton . --no-interaction
```

(Everytime) Start local environment using this command:

```
bash start.sh
```

and voila! Your local environment is ready to development api app with useful tools.

**Check `http://localhost:8080/api/doc`!**

### How to use **Standard Version**

[](#how-to-use-standard-version)

If You don't have node\_modules directory run:

```
npm install
```

First release:

```
npm run version:first-release
```

`Major`, `Minor`, `Patch` version update:

```
npm run version:major
# or
npm run version:minor
# or
npm run version:patch
```

Push tags:

```
npm run version:release
# or
npm run release
```

Check `package.json` for understand what commands do.

### How to use **PHPStan**

[](#how-to-use-phpstan)

Main command:

```
docker exec php composer code:analyse
```

but, if You need to add errors to ignored:

```
docker exec php composer code:analyse:b
```

### How to use **PHP CS Fixer**

[](#how-to-use-php-cs-fixer)

```
docker exec php composer code:fix
```

### How to use **XDebug** in **Visual Studio Code**

[](#how-to-use-xdebug-in-visual-studio-code)

Create new file in Your project: `.vscode/launch.json`

```
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for xDebug",
            "type": "php",
            "request": "launch",
            "port": 5902,
            "hostname": "0.0.0.0",
            "pathMappings": {
                "/app/": "${workspaceRoot}"
            }
        }
    ]
}
```

Uncomment environments in `.env.local`:

```
XDEBUG_MODE=develop,debug
XDEBUG_CONFIG=" client_port=5902 idekey=VSCODE client_host=host.docker.internal discover_client_host=0 start_with_request=yes"
```

Type `Ctrl + Shift + D` and run `Listen for xDebug`.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance62

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~45 days

Recently: every ~168 days

Total

16

Last Release

237d ago

Major Versions

0.0.1 → 1.0.02023-11-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/145db325ca53baabce2d955faebe43d56bc4f3122b9ae463d41ee0e5da487cea?d=identicon)[patrykbaszak](/maintainers/patrykbaszak)

---

Top Contributors

[![patrykbaszak](https://avatars.githubusercontent.com/u/66377724?v=4)](https://github.com/patrykbaszak "patrykbaszak (41 commits)")

---

Tags

apiskeletonsymfonysymfonySkeleton

### Embed Badge

![Health badge](/badges/pbaszak-api-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/pbaszak-api-skeleton/health.svg)](https://phpackages.com/packages/pbaszak-api-skeleton)
```

###  Alternatives

[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

42867.3k](/packages/harmbandstra-swagger-ui-bundle)[php-tmdb/symfony

Symfony Bundle for TMDB (The Movie Database) API. Provides easy access to the php-tmdb/api library.

3649.7k](/packages/php-tmdb-symfony)[thecatontheflat/atlassian-connect-bundle

Atlassian Connect Symfony Bundle

357.6k](/packages/thecatontheflat-atlassian-connect-bundle)

PHPackages © 2026

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