PHPackages                             codemix/restyii - 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. codemix/restyii

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

codemix/restyii
===============

Opinionated RESTful, HATEOAS compliant extension for Yii

v0.0.4(12y ago)151.1k10[3 issues](https://github.com/codemix/restyii/issues)[1 PRs](https://github.com/codemix/restyii/pulls)MITPHPPHP &gt;=5.3.0

Since Jul 9Pushed 11y ago9 watchersCompare

[ Source](https://github.com/codemix/restyii)[ Packagist](https://packagist.org/packages/codemix/restyii)[ RSS](/packages/codemix-restyii/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Restyii
=======

[](#restyii)

A RESTful [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS) compliant extension for Yii. Allows your application to serve and accept JSON, JSONP, XML, CSV or HTML using the same code. The JSON and XML variants are based on the [HAL](http://stateless.co/hal_specification.html) media type.

WARNING: Pre-alpha software, use at your own risk.
--------------------------------------------------

[](#warning-pre-alpha-software-use-at-your-own-risk)

Installation.
=============

[](#installation)

Install using composer. Requires php 5.3 or later.

Restyii makes use of a custom `WebApplication` that replaces the Yii default. For this reason it's necessary to replace existing calls to

```
Yii::createWebApplication($config)

```

with

```
Yii::createApplication('Restyii\\Web\\Application', $config)

```

in your `index.php` file.

Server Configuration.
=====================

[](#server-configuration)

Example Restyii server application config

```
