PHPackages                             rotlesnake/fast-api-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. [HTTP &amp; Networking](/categories/http)
4. /
5. rotlesnake/fast-api-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rotlesnake/fast-api-php
=======================

rest service

v1.0.0(1y ago)01PHPPHP ^8.2

Since Mar 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rotlesnake/fast-api-php)[ Packagist](https://packagist.org/packages/rotlesnake/fast-api-php)[ RSS](/packages/rotlesnake-fast-api-php/feed)WikiDiscussions main Synced 1mo ago

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

Install
=======

[](#install)

```
composer install rotlesnake/fast-api-php

```

Init app
========

[](#init-app)

application folder structure

```
+App
 |----Auth
 |    |------Controllers
 |    |      |--------------LoginController.php
 |    |------Models
 |           |--------------Users.php
 |----ModuleOne
      |------Controllers
      |      |--------------IndexController.php
      |------Models
             |--------------Items.php
.htaccess
index.php

```

/.htaccess

```
Options All -Indexes

    Header add Access-Control-Allow-Origin "*"
    Header add Access-Control-Allow-Headers "authorization, token, origin, content-type"
    Header add Access-Control-Allow-Methods "GET, POST, PUT, DELETE, PATCH, OPTIONS"

RewriteCond %{REQUEST_URI} /www/
RewriteRule ^(.*)$ $1 [L,QSA]

RedirectMatch 404 /App/
RedirectMatch 404 /vendor/

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

```

/index.php

```
require("vendor/autoload.php");
define("APP_PATH",   str_replace("/", DIRECTORY_SEPARATOR, realpath(__DIR__)."/App/") );
define("ROOT_URL",   str_replace("//", "/", dirname($_SERVER["SCRIPT_NAME"])."/") );

$settings = [
        'debug'       => true,
        'timezone'    => 'Etc/GMT-3',
        'locale'      => 'ru_RU.UTF-8',

        'database' => [
            'driver'    => 'sqlite',
            'database'  => APP_PATH."database.db",
            'prefix'    => '',
        ],
//      --- or ---
        'database' => [
            'driver'    => 'mysql',
            'host'      => 'localhost',
            'port'      => '3306',
            'database'  => 'learn',
            'username'  => 'root',
            'password'  => '',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => 'prj_',
            'engine'    => 'InnoDB', //'InnoDB' 'MyISAM'
        ],

];
ini_set('date.timezone', $settings['timezone']);
date_default_timezone_set($settings['timezone']);
setlocale(LC_TIME, $settings['locale']);
ignore_user_abort(true);

$APP = new \FastApiPHP\App(APP_PATH, ROOT_URL);
$APP->init($settings);
$APP->run();

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance44

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23b94c6639da8be3a5936f484c363a3ab8c25fa1eb81fea68d07884bce070e1c?d=identicon)[rotlesnake](/maintainers/rotlesnake)

---

Top Contributors

[![rotlesnake](https://avatars.githubusercontent.com/u/2843275?v=4)](https://github.com/rotlesnake "rotlesnake (2 commits)")

---

Tags

rest

### Embed Badge

![Health badge](/badges/rotlesnake-fast-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/rotlesnake-fast-api-php/health.svg)](https://phpackages.com/packages/rotlesnake-fast-api-php)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[vyuldashev/laravel-openapi

Generate OpenAPI Specification for Laravel Applications

4571.2M](/packages/vyuldashev-laravel-openapi)[chrisbjr/api-guard

A simple way of authenticating your APIs with API keys using Laravel

698375.6k5](/packages/chrisbjr-api-guard)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[marcelgwerder/laravel-api-handler

Package providing helper functions for a Laravel REST-API

16092.6k](/packages/marcelgwerder-laravel-api-handler)[genxoft/yii2-oas3

Yii2 Open Api Swagger 3 integration

18346.3k1](/packages/genxoft-yii2-oas3)

PHPackages © 2026

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