PHPackages                             restify-php/restify-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. [Framework](/categories/framework)
4. /
5. restify-php/restify-php

ActiveLibrary[Framework](/categories/framework)

restify-php/restify-php
=======================

Zero-dependency PHP micro-framework for instant REST APIs.

v1.0.0(6mo ago)211MITPHPPHP ^8.1CI failing

Since Nov 2Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/dipcb05/Restify-PHP)[ Packagist](https://packagist.org/packages/restify-php/restify-php)[ RSS](/packages/restify-php-restify-php/feed)WikiDiscussions v1.0.0 Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Restify-PHP
===========

[](#restify-php)

Simplicity | Performance | Portability

Ultra-light, zero-dependency PHP 8+ micro-framework for building blazing fast JSON APIs. Drop your domain objects into `class/`, add procedural endpoints in `api/`, start the built-in server, and you are shipping without Composer or vendor installs.

Why Restify?
============

[](#why-restify)

- Pure PHP 8+ with strict typing, PSR-12 style, and no bundled dependencies.
- File-first development: `class/` for domain logic and attributes, `api/` for endpoint scripts, `restify/` for framework internals.
- Async ready: Fibers, curl-multi, non-blocking sockets, and background workers useable with `php restify-cli run --async`.
- Drop-in middleware: CORS, rate limiting, logging with redaction, unified exception handler, JWT auth, request validation.
- Configurable caching via APCu/opcache, DB helpers for MySQL, PostgreSQL, SQL Server, Oracle, SQLite, MongoDB.
- OpenAPI generator produces JSON/YAML specs with example payloads and spun-up Swagger UI.
- Built-in tests, CLI scaffolding, install command, and Docker/docker-compose templates for instant bootstrapping.
- Health check at `/health` for orchestrators plus `/docs` generation for humans.

Quick start
-----------

[](#quick-start)

```
php -S localhost:8000 -t public
```

Composer install
----------------

[](#composer-install)

```
composer require restify-php/restify-php
php vendor/bin/restify install
php restify-cli run --async     # optional fiber runtime
```

Command line helpers
--------------------

[](#command-line-helpers)

```
php restify-cli --help
php restify-cli make:class App\Domain\User
php restify-cli run --async
php restify-cli docs:openapi --format yaml --serve --port 8081
php restify-cli log
php restify-cli authentication
php restify-cli test --phpunit   # falls back to native runner when phpunit missing
```

Composer scripts
----------------

[](#composer-scripts)

```
composer serve          # php -S 0.0.0.0:8000 -t public
composer docs           # openapi generation
composer test           # delegates to restify-cli test
```

Docker
------

[](#docker)

```
docker compose up --build
# App available at http://localhost:8000, Redis exposed on 6379 (optional caching)
```

Environment snippet
-------------------

[](#environment-snippet)

`.env` carries sane defaults; tweak as needed:

```
LOGGING_ENABLED=true
LOG_LEVEL=info
LOG_PATH=storage/logs/restify.log
LOG_BODY_LIMIT=2048
CORS_ENABLED=true
CORS_ALLOWED_ORIGINS=*
AUTH_ENABLED=true
AUTH_PUBLIC_PATHS=/health
EXCEPTIONS_TRACE=false

```

Health check
------------

[](#health-check)

`GET /health` returns:

```
{
  "status": "ok",
  "timestamp": "2025-01-01T00:00:00+00:00"
}
```

Documentation
-------------

[](#documentation)

The complete guide (architecture, CLI, async, auth, caching, validation, OpenAPI, middleware, packaging) lives in [`docs/restify.md`](docs/restify.md).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance66

Regular maintenance activity

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Every ~152 days

Total

2

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b50fe74c32de1f94fa6f9266c483eba0155b052e0b48f61d39de0fb6c6b8cf77?d=identicon)[dipcb05](/maintainers/dipcb05)

---

Top Contributors

[![dipcb05](https://avatars.githubusercontent.com/u/39948352?v=4)](https://github.com/dipcb05 "dipcb05 (12 commits)")

---

Tags

apibackendphprest-apirestful-apiwebasyncapiframeworkrestmicroframeworkphp8

### Embed Badge

![Health badge](/badges/restify-php-restify-php/health.svg)

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

###  Alternatives

[gotzmann/comet

Modern PHP framework for building blazing fast REST APIs and microservices

68816.2k1](/packages/gotzmann-comet)[psx/psx

PHP REST API Framework

17112.6k3](/packages/psx-psx)[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)
