PHPackages                             sergey-shandar/restapi-core-php-poc - 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. sergey-shandar/restapi-core-php-poc

AbandonedArchivedLibrary[API Development](/categories/api)

sergey-shandar/restapi-core-php-poc
===================================

REST API Core for PHP (Proof of concept)

063PHP

Since May 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sergey-shandar/restapi-core-php-poc)[ Packagist](https://packagist.org/packages/sergey-shandar/restapi-core-php-poc)[ RSS](/packages/sergey-shandar-restapi-core-php-poc/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

restapi-core-php-poc
====================

[](#restapi-core-php-poc)

REST API Core for PHP (Proof of concept)

[![Build Status](https://camo.githubusercontent.com/05cf5c027ac2077f4c36679db227d0e9281b681e836bfa0607e8c057da3cfb38/68747470733a2f2f7472617669732d63692e6f72672f7365726765792d7368616e6461722f726573746170692d636f72652d7068702d706f632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sergey-shandar/restapi-core-php-poc)

[![Latest Unstable Version](https://camo.githubusercontent.com/61bb1ba1c9194599fc0c3544e494976b9cebe034cfd644db603c0dc777a8a581/68747470733a2f2f706f7365722e707567782e6f72672f7365726765792d7368616e6461722f726573746170692d636f72652d7068702d706f632f762f756e737461626c65)](https://packagist.org/packages/sergey-shandar/restapi-core-php-poc)

Supported Run Times
===================

[](#supported-run-times)

- PHP 5.6
- PHP 7.0
- PHP 7.1
- HHVM 3.6

Required Windows Extensions
===========================

[](#required-windows-extensions)

- `php_mbstring.dll`
- `php_openssl.dll`

Supported Request Types
=======================

[](#supported-request-types)

Class NameContent-Type`Requests\JsonRequest``application/json``Requests\FormRequest``application/x-www-form-urlencoded``Requests\MultiPartRequest``multipart/form-data`Reflection
==========

[](#reflection)

Supported Types
---------------

[](#supported-types)

Reflection Type InfoPHP TypePHP JSON TypeSwagger TypeSwagger Format`StringInfo``string``string``string``BooleanInfo``boolean``boolean``boolean``NumberInfo``int``int``integer``int32``float``float``number``float``double``LongInfo``string``string``integer``int64``DateTimeInfo``\DateTime``string``string``date-time``DateIntervalInfo``\DateInterval``string``string``duration``ArrayInfo``T[]``T[]``array``MapInfo``T[]``\stdClass``object``ClassInfo``UserClass``\stdClass``object`JSON
====

[](#json)

- Serialization: PHP Type =&gt; string
- Deserialization: string =&gt; PHP JSON Type =&gt; PHP Type

Conventions
===========

[](#conventions)

Each user class should implement

1. A default constructor.
2. A `createClassInfo` static function which returns `\RestApiCore\Reflection\Types\ClassInfo`.

For example

```
