# corcel/corcel

Use WordPress backend with Laravel or any PHP application

Repository: https://github.com/corcel/corcel
Canonical: https://ross.abutalabs.com/products/corcel
Language: PHP
License: MIT
License Family: permissive
Topics: php, wordpress, laravel, eloquent, mvc, corcel, shortcode, taxonomies, hacktoberfest
Last push: 2025-03-19T14:09:00+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 12, release rhythm 8, longevity 100
- inputs: {"age_days": 4825, "days_push": 532, "days_rel": 532, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4776, forks 600 (observed 2026-08-28T04:08:59.513075+00:00)

## What it is
Corcel is a PHP library of Eloquent ORM model classes that lets any PHP application query a WordPress database directly. It enables using WordPress as a backend/CMS while building the frontend or API with Laravel or another PHP framework.

## Use cases
- use WordPress as the admin backend for a Laravel app
- query WordPress posts, pages, and custom post types from PHP
- build a headless WordPress setup with Laravel
- access WordPress users, taxonomies, and menus via Eloquent models
- integrate ACF fields and post meta into a PHP application
- authenticate WordPress users from a Laravel application

## When to choose
- you want WordPress for content editing but a custom PHP/Laravel frontend
- you need Eloquent-style access to WordPress database tables
- you want to avoid the WordPress REST API overhead

## When to avoid
- you need a fully decoupled, language-agnostic headless CMS via REST/GraphQL
- your project does not use PHP or Composer
- you want to modify WordPress behavior itself rather than read its data

## Facets
- artifact type: library
- maturity: active
- function: orm, database, auth
- domain: cms, web-development, backend, databases
- platform: php
- tags: wordpress, eloquent, headless-cms, model-layer, composer, laravel

## Member repositories
- corcel/corcel (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:59.513075+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:46.131200+00:00, confidence not recorded.
  - readme: https://github.com/corcel/corcel (fetched 2026-08-28T04:08:59.513075+00:00, sha dbd7b39b958f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
