PHPackages                             sanity/silex-service-provider - 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. sanity/silex-service-provider

AbandonedArchivedLibrary[Framework](/categories/framework)

sanity/silex-service-provider
=============================

Sanity service provider for Silex

v1.0.1(8y ago)182[1 issues](https://github.com/sanity-io/silex-service-provider/issues)[2 PRs](https://github.com/sanity-io/silex-service-provider/pulls)MITPHP

Since Nov 14Pushed 3y ago5 watchersCompare

[ Source](https://github.com/sanity-io/silex-service-provider)[ Packagist](https://packagist.org/packages/sanity/silex-service-provider)[ RSS](/packages/sanity-silex-service-provider/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Sanity service provider for Silex
=================================

[](#sanity-service-provider-for-silex)

A service provider for [Silex](https://silex.symfony.com/) that can be used to communicate with the [Sanity API](https://www.sanity.io/) using the [PHP library](https://github.com/sanity-io/sanity-php).

[![Packagist](https://camo.githubusercontent.com/30e032110ed19d83d79f91d2114c8233bc383d28ff12f6246cc97417ba488b73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e6974792f73696c65782d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sanity/silex-service-provider)[![Travis](https://camo.githubusercontent.com/aededf53e8c90c01111ce9689bba1b9d10448876aa44fd09ebade694245d1147/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73616e6974792d696f2f73696c65782d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sanity-io/silex-service-provider)

Requirements
------------

[](#requirements)

The service provider can be used with Silex &gt;= 2.0.

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

[](#installation)

You can install the library via [Composer](http://getcomposer.org/). Run the following command:

```
composer require sanity/silex-service-provider
```

To load the service provider simply register it in the Silex application:

```
