PHPackages                             xervice/api - 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. xervice/api

ActiveLibrary[API Development](/categories/api)

xervice/api
===========

2.0.0(7y ago)03691MITPHPPHP &gt;=7.1.0

Since Jul 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xervice/api)[ Packagist](https://packagist.org/packages/xervice/api)[ RSS](/packages/xervice-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (3)Used By (1)

Api
===

[](#api)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a93583ff67e296472f3f29214dec5b3a8050ae66a037e70abe43c6bf61b6e6e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786572766963652f6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xervice/api/?branch=master)[![Build Status](https://camo.githubusercontent.com/ed1dc5bc3de10de35de89f991292ff7f6b9212babc6906e6b8a507dd690f9c34/68747470733a2f2f7472617669732d63692e6f72672f786572766963652f617069).svg?branch=master)](https://travis-ci.org/xervice/api)[![Code Coverage](https://camo.githubusercontent.com/70dac977e93628545ff6475f2c2cd4f53735157df002310f19e9c21c11506a96/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786572766963652f6170692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xervice/api/?branch=master)

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

[](#installation)

```
composer require xervice/api

```

Configuration
-------------

[](#configuration)

If you want to use secured api controller, you have to add the kernel service and the authenticator to the security module:

- You must add the "\\Xervice\\Api\\Business\\Plugin\\ApiAuthService" plugin to the kernel stack.
- Also you must define your authoration types and add their authenticator (\\Xervice\\Api\\Business\\Model\\Authenticator\\ApiAuthenticator) to the security dependency provider.

Using
-----

[](#using)

To use an api controller without authentification, you can extend from AbstractApiController.

```
