# corcel/corcel

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/corcel-corcel).**

4,780 stars · 602 forks · PHP · mit

## Links

- GitHub: https://github.com/corcel/corcel
- awesome-repositories: https://awesome-repositories.com/repository/corcel-corcel.md

## Topics

`corcel` `eloquent` `hacktoberfest` `laravel` `mvc` `php` `shortcode` `taxonomies` `wordpress`

## Description

Corcel transforms a remote WordPress site into a local data source by wrapping its REST API in an object-relational mapper. As a headless CMS bridge, it synchronizes remote posts, pages, users, and options into local models, enabling offline querying and manipulation from external PHP applications.

The library uses pluggable adapters to fetch different WordPress resource types and a schema-based translation layer that converts WordPress post types and fields into local definitions. It validates user credentials against a remote WordPress database and integrates with the host framework’s authentication system. A shortcode parsing engine registers custom handlers and renders shortcodes within fetched content, while the remote-to-local state synchronization keeps local data consistent with the WordPress backend.

Beyond the core identity, Corcel provides full CRUD operations on WordPress entities, site options management, navigation menu retrieval, and post metadata management. It exposes content querying with filtering by status, custom fields, taxonomies, and date order using an ORM query builder.

## Tags

### Part of an Awesome List

- [REST API Object-Relational Mappings](https://awesome-repositories.com/f/awesome-lists/data/object-relational-mapping/rest-api-object-relational-mappings.md) — Maps WordPress REST API endpoints to local Eloquent-like model objects for querying remote data as local records.
- [Remote Authentication Integrations](https://awesome-repositories.com/f/awesome-lists/devtools/wordpress-integration/remote-authentication-integrations.md) — Validates user credentials against a remote WordPress database and integrates with the host framework's authentication system.

### Content Management & Publishing

- [Headless CMS Integrations](https://awesome-repositories.com/f/content-management-publishing/headless-cms-integrations.md) — Transforms a remote WordPress installation into a local data source by wrapping its REST API in an ORM.

### Data & Databases

- [Content Query Filters](https://awesome-repositories.com/f/data-databases/data-access-querying/api-query-languages/content-api-query-filters/content-query-filters.md) — Retrieves and filters WordPress posts by status, custom fields, taxonomies, and date order using an ORM query builder. ([source](https://github.com/corcel/corcel#readme))
- [Content Synchronizers](https://awesome-repositories.com/f/data-databases/data-import-and-export/wordpress-content-migrations/content-synchronizers.md) — Synchronizes remote WordPress posts, pages, and options into local models for offline querying and manipulation.
- [Remote Content Fetching](https://awesome-repositories.com/f/data-databases/data-import-and-export/wordpress-content-migrations/remote-content-fetching.md) — Fetches posts, pages, and custom content types from a remote WordPress site with filtering and ordering.
- [Data Manipulation Libraries](https://awesome-repositories.com/f/data-databases/data-manipulation-libraries.md) — Creates, updates, and deletes WordPress entities such as posts, pages, users, comments, and metadata from a remote application. ([source](https://github.com/corcel/corcel/blob/9.0/.phpunit.result.cache))
- [Remote-to-Local Database Synchronizers](https://awesome-repositories.com/f/data-databases/entity-modeling/entity-table-synchronizers/remote-to-local-database-synchronizers.md) — Synchronizes remote WordPress content state to local storage for consistent offline or cached access.
- [Content Retrieval Adaptations](https://awesome-repositories.com/f/data-databases/search-indexing-technologies/search-indexing/search-engine-apis/search-engine-selectors/pluggable-adapters/content-retrieval-adaptations.md) — Provides pluggable adapters that fetch and parse different WordPress resource types from REST API responses.

### Development Tools & Productivity

- [ORM Mappings](https://awesome-repositories.com/f/development-tools-productivity/rest-apis/rest-api-data-sources/orm-mappings.md) — Maps WordPress REST API endpoints to local data model classes for easy querying, filtering, and updating.

### Security & Cryptography

- [Remote Credential Validations](https://awesome-repositories.com/f/security-cryptography/authentication-clients/credential-authentication/remote-credential-validations.md) — Validates WordPress user credentials against a remote database and integrates with the host framework's authentication system.
- [User Authentication Systems](https://awesome-repositories.com/f/security-cryptography/user-authentication-systems.md) — Validates login credentials against a remote WordPress user database and integrates with host framework authentication. ([source](https://github.com/corcel/corcel#readme))

### Software Engineering & Architecture

- [Provider Schema Translations](https://awesome-repositories.com/f/software-engineering-architecture/unified-data-modeling/provider-schema-translations.md) — Converts WordPress post types and fields into local schema definitions for seamless framework integration.

### Web Development

- [Shortcodes](https://awesome-repositories.com/f/web-development/content-insertion-utilities/dynamic-content-insertion/shortcodes.md) — Parses and renders WordPress shortcodes within remote content using configurable handler registries.
- [Remote Shortcode Rendering](https://awesome-repositories.com/f/web-development/content-insertion-utilities/dynamic-content-insertion/shortcodes/remote-shortcode-rendering.md) — Registers custom shortcode handlers and parses them within remote WordPress post content.
