PHPackages                             sageit/phalcon-rest - 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. sageit/phalcon-rest

ActiveLibrary[Framework](/categories/framework)

sageit/phalcon-rest
===================

Sage IT Component for Phalcon - REST JSON Parser services

v1.03(3y ago)08MITPHPPHP &gt;=7.0

Since Jan 1Pushed 3y agoCompare

[ Source](https://github.com/SageITSolutions/phalcon-rest)[ Packagist](https://packagist.org/packages/sageit/phalcon-rest)[ RSS](/packages/sageit-phalcon-rest/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

 [ ![Logo](.readme/logo.png) ](https://github.com/SageITSolutions/phalcon-rest)Phalcon REST
============

[](#phalcon-rest)

[![Latest Stable Version](https://camo.githubusercontent.com/43b23c68d73b56783a5111f67b35f6f3dd1b2a660dcb6cd0d13834dc5d0ac971/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f7068616c636f6e2d726573742f763f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/phalcon-rest)[![Total Downloads](https://camo.githubusercontent.com/8c9a077070a9579141488152f5cf930703565cadba40eb8423f78c93a7814cf0/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f7068616c636f6e2d726573742f646f776e6c6f6164733f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/phalcon-rest)[![License](https://camo.githubusercontent.com/add396a5d062a2ad477d779bc5f379171ae5907587649c7594b5d3b3f373bb71/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f7068616c636f6e2d726573742f6c6963656e73653f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/phalcon-rest)[![PHP Version Require](https://camo.githubusercontent.com/5942207a430bd2585a13f5e149f87c57780618092477f3d0b0b929f56d95c126/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f7068616c636f6e2d726573742f726571756972652f7068703f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/phalcon-rest)[![Phalcon Version](https://camo.githubusercontent.com/1a7f08246706eb26e915ec00642182922c6572eee8cc254829c089b771239907/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f7361676569742f7068616c636f6e2d726573742f6578742d7068616c636f6e3f6c6162656c3d5068616c636f6e266c6f676f3d5068616c636f6e25323056657273696f6e267374796c653d706c6173746963)](https://packagist.org/packages/sageit/phalcon-rest)

 Library for enhancing Micro applications with REST functionality, Bearer Token Parsing, and JSON Interpretation. Includes Dynamic Validation Processing to make JWT extensible. This is not a fully baked Micro Application, but rather a set of tools to enable additional out-of-the-box functionality for your own micro applications.

**[Explore the docs »](https://github.com/SageITSolutions/phalcon-rest)**

**[Report Bug](https://github.com/SageITSolutions/phalcon-rest/issues)** · **[Request Feature](https://github.com/SageITSolutions/phalcon-rest/issues)**

Table of Contents
-----------------

[](#table-of-contents)

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
    - [Built With](#built-with)
- [Installation](#installation)
- [Implementing a Service](#implementing-a-service)
- [Sections](#sections)
    - [Tools](TOOLS.md)
    - [JSON Headers](JSON.md)
    - [JWT Encryption](JWT.md)
    - [Middleware](MIDDLEWARE.md)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)

About The Project
-----------------

[](#about-the-project)

### Built With

[](#built-with)

- [vscode](https://code.visualstudio.com/)
- [Postman](https://www.postman.com/)
- [php 8.1.1](https://www.php.net/releases/8_1_1.php)
- [Phalcon 5](https://phalcon.io/en-us) (Micro Framework)

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

[](#installation)

**Git:**

```
git clone https://github.com/SageITSolutions/phalcon-rest.git
```

**Composer:**

```
composer require sageit/phalcon-rest
```

Implementing a Service
----------------------

[](#implementing-a-service)

This project consists of prebuild services that simply need to be added to DI for services. JWT assumes the presense of a config object in the DI with a JWT section. This can also be passed as a named array in the constructor, but the provided JWT service does not utilize this.

**Config Register**

One option is to have your application iterate services listed in the config object and register them

```
services:
  tools: Phalcon\Di\Service\Common\Tools
  request: Phalcon\Di\Service\Request\Json
  response: Phalcon\Di\Service\Response\Json
  jwt: Phalcon\Di\Service\Encryption\Security\JWT\Jwt
```

```
foreach ($config->services as $service => $class) {
  $di->register(new $class);
}
```

**Register Manually**

```
$di->register(new \Phalcon\Di\Service\Common\Tools());
$di->register(new \Phalcon\Di\Service\Request\Json());
$di->register(new \Phalcon\Di\Service\Response\Json());
$di->register(new \Phalcon\Di\Service\Encryption\Security\JWT\Jwt());
```

Sections
--------

[](#sections)

- [Tools](TOOLS.md)
- [JSON Headers](JSON.md)
- [JWT Encryption](JWT.md)
- [Middleware](MIDDLEWARE.md)

Roadmap
-------

[](#roadmap)

See the [open issues](/issues) for a list of proposed features (and known issues).

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE` for more information.

Contact
-------

[](#contact)

Sage IT Solutions - [Email](mailto:daniel.davis@sageitsolutions.net)

Project Link:

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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

Total

5

Last Release

1227d ago

Major Versions

v0.01 → v1.002023-01-03

### Community

Maintainers

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

---

Top Contributors

[![DavisDS](https://avatars.githubusercontent.com/u/120134967?v=4)](https://github.com/DavisDS "DavisDS (1 commits)")

---

Tags

jwtjsonframeworkrestmicrophalcon

### Embed Badge

![Health badge](/badges/sageit-phalcon-rest/health.svg)

```
[![Health](https://phpackages.com/badges/sageit-phalcon-rest/health.svg)](https://phpackages.com/packages/sageit-phalcon-rest)
```

###  Alternatives

[phprest/phprest

PHP Rest Framework.

3049.3k](/packages/phprest-phprest)[bullhorn/fast-rest

FastREST generates REST-ready models and controllers dynamically from a MySQL database schema, including foreign keys, table and column comments, and indexes.

258.0k](/packages/bullhorn-fast-rest)[atk4/api

Agile API - Extensible API server in PHP for Agile Data

143.7k1](/packages/atk4-api)

PHPackages © 2026

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