PHPackages                             mikenolimits/corcel - 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. mikenolimits/corcel

ActiveLibrary[API Development](/categories/api)

mikenolimits/corcel
===================

Use WordPress backend with any PHP framework

v1.3.3(9y ago)19MITPHPPHP &gt;=5.6.4

Since Feb 3Pushed 9y agoCompare

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

READMEChangelogDependencies (6)Versions (34)Used By (0)

Corcel
======

[](#corcel)

> This package allows you to use WordPress as backend (admin panel) and retrieve its data using Eloquent, with any PHP project or even framework.

[![Travis](https://camo.githubusercontent.com/6f18afa5e4ff49338811c0aa1ca2a729a5a457348f1c33715eeedb6b7852758b/68747470733a2f2f7472617669732d63692e6f72672f636f7263656c2f636f7263656c2e7376673f6272616e63683d646576)](https://travis-ci.org/corcel/corcel?branch=dev)[![Packagist](https://camo.githubusercontent.com/8e6a372398d6673e0791a9e38d158e4db474795f4a4f3fd39c221bebd8a7afc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a67726f7373692f636f7263656c2e737667)](https://github.com/jgrossi/corcel/releases)[![Packagist](https://camo.githubusercontent.com/de473c22c47fdb308255bcd9db8caccfc6a4f54610443d7f6e148b8260d430f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a67726f7373692f636f7263656c2e737667)](https://packagist.org/packages/jgrossi/corcel)

[Follow @corcelphp on Twitter](https://twitter.com/corcelphp)

Corcel is a class collection created to retrieve WordPress database data using a better syntax. It uses the [Eloquent ORM](https://github.com/illuminate/database) developed for the Laravel Framework, but you can use Corcel in any type of PHP project, with any framework, including Laravel.

This way, you can use WordPress as the backend (admin panel), to insert posts, custom types, etc, and you can use whatever you want in the frontend, like Silex, Slim Framework, Laravel, Zend, or even pure PHP (why not?). So, just use Corcel to retrieve data from WordPress.

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

[](#installation)

To install Corcel, just run the following command:

```
composer require jgrossi/corcel

```

Usage
-----

[](#usage)

### I'm using Laravel

[](#im-using-laravel)

If you are using Laravel you **do not need** to configure database again. It's all already set by Laravel. So you have only to change the `config/database.php` config file and set yours connections. You can use just one connection or two (one for your Laravel app and another to Corcel). Your file will look like this:

```
