PHPackages                             swift-api/swift-starter - 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. swift-api/swift-starter

ActiveLibrary[Framework](/categories/framework)

swift-api/swift-starter
=======================

Easy starter project for Swift

v0.2.18(2y ago)09MITPHPPHP &gt;=8.2.0

Since Apr 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SwiftAPI/swift-starter)[ Packagist](https://packagist.org/packages/swift-api/swift-starter)[ Docs](https://github.com/SwiftAPI/swift-starter)[ RSS](/packages/swift-api-swift-starter/feed)WikiDiscussions main Synced 5d ago

READMEChangelog (8)Dependencies (1)Versions (13)Used By (0)

[![CodeFactor](https://camo.githubusercontent.com/bbaf54e869606ce820446d36e7b44e7b89efae879351f2e7518894c333de363c/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f73776966746170692f73776966742d737461727465722f6261646765)](https://www.codefactor.io/repository/github/swiftapi/swift-starter)[![Version](https://camo.githubusercontent.com/6193a1fbb38bd60c94db7d557f918aff430477b26157d9b00651a5e55f60e94e/687474703a2f2f706f7365722e707567782e6f72672f73776966742d6170692f73776966742d737461727465722f76657273696f6e)](https://packagist.org/packages/swift-api/swift-starter)[![Latest Unstable Version](https://camo.githubusercontent.com/da61020fa0d15dc6ac4249395c84ceda597849874157f9829c08b674dbbab2fa/687474703a2f2f706f7365722e707567782e6f72672f73776966742d6170692f73776966742d737461727465722f762f756e737461626c65)](https://packagist.org/packages/swift-api/swift-starter)[![PHP Version Require](https://camo.githubusercontent.com/648dcb442bef17f52d516ca4edb61eff9267e9caa170936cf52753af3f3e9569/687474703a2f2f706f7365722e707567782e6f72672f73776966742d6170692f73776966742d737461727465722f726571756972652f706870)](https://packagist.org/packages/swift-api/swift-starter)

Getting started
===============

[](#getting-started)

Install
-------

[](#install)

```
composer create-project swift-api/swift-starter project_name
```

Init database
-------------

[](#init-database)

Make sure to fill out login detail to a database in /etc/config/database.yaml

```
connection:
    driver: mysqli
    host: localhost
    username: root
    password: ''
    database: myapp_db
    port: 3306
    prefix: prefix_
```

Init the database by running

```
php bin/console database:entities:update
```

Setup app details
-----------------

[](#setup-app-details)

Fill out /etc/config/app.yaml. Make sure to add the right baseurl, otherwise routing won't work.

All set!
--------

[](#all-set)

Visit your site site *app-domain*/hello-world and you should get the following response

```
{
    "message": "Hey legend! Let's get started at https://henrivantsant.github.io/swift-docs/"
}
```

From here you can rename the references from MyApp to your own namespace and get going.

1. Rename in root services.yaml (this references to destination to the first part of the namespace)
2. Rename in App folder
3. Rename in app/config.yaml
4. Rename namespace of the HelloWorld controller or remove it

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 89.3% 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 ~102 days

Recently: every ~164 days

Total

12

Last Release

739d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a593f38f88a32d42830f7cf2805ab817b1997acb92ecbcb59d5b85add2ef5525?d=identicon)[henri@henrivantsant.dev](/maintainers/henri@henrivantsant.dev)

---

Top Contributors

[![Buro26-Henri](https://avatars.githubusercontent.com/u/71004244?v=4)](https://github.com/Buro26-Henri "Buro26-Henri (25 commits)")[![HenrivantSant](https://avatars.githubusercontent.com/u/33251446?v=4)](https://github.com/HenrivantSant "HenrivantSant (3 commits)")

---

Tags

phpapisymfonyframeworkrestgraphqlSimpleREST APIswiftphp8cli-appgraphql-apigraphql-server

### Embed Badge

![Health badge](/badges/swift-api-swift-starter/health.svg)

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

###  Alternatives

[patricksavalle/slim-rest-api

Production-grade REST-API App-class for PHP SLIM, in production on https://zaplog.pro (https://api.zaplog.pro/v1)

101.4k](/packages/patricksavalle-slim-rest-api)

PHPackages © 2026

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