API Platform Core
repository·main·Indexed 25 days ago
https://github.com/api-platform/coreA powerful engine for building hypermedia-driven REST and GraphQL APIs, designed to work with the Symfony framework. It natively supports standardized formats including JSON-LD, Hydra, OpenAPI, JSON:API, HAL, and Problem Details. The core library includes components for metadata generation, serialization, state providers and processors, validation, and HTTP caching, with integrations for Doctrine MongoDB ODM, Elasticsearch, and Laravel.
What's inside api-platform-core
- The Validator component is a part of the API Platform framework used to handle data validation. It integrates with the framework to ensure that incoming data (typically via API requests) conforms to defined constraints before being processed or persisted.
Overview of API Platform OpenAPI component
mainThe OpenAPI component of API Platform is responsible for building and serializing OpenAPI specifications (formerly known as Swagger). It allows developers to automatically generate and expose machine-readable documentation for their APIs based on the defined resources and configurations within the framework.Overview of API Platform JSON-LD component
mainThe JSON-LD component of the API Platform framework is designed to organize and connect data using the JSON-LD standard. It helps transform disconnected data into a structured, linked format to create a more interconnected web of data. For detailed implementation guides, such as extending the JSON-LD context, refer to the official documentation.Overview of API Platform Hydra component
mainThe Hydra component is part of the API Platform framework designed to simplify the development of interoperable, hypermedia-driven Web APIs. It implements the Hydra specification to provide machine-readable hypermedia capabilities to your APIs.Overview of the API Platform Serializer
mainThe Serializer component is responsible for converting PHP objects into various API formats (and vice versa). It is built on top of the Symfony Serializer component, providing the necessary infrastructure to handle data transformation for API responses and requests within the API Platform framework.Overview of API Platform MCP integration
mainThe MCP (Model Context Protocol) component integrates the MCP PHP SDK with the API Platform framework. It works in conjunction with the MCP Bundle for Symfony to provide Model Context Protocol capabilities within your API Platform application.
Warning: This component is currently experimental.
Overview of API Platform GraphQL support
mainAPI Platform provides a dedicated GraphQL component that allows you to expose your data models as a GraphQL schema. It integrates with the core framework to provide queries, mutations, and subscriptions based on your existing API Platform resources.Overview of API Platform HTTP Cache
mainThe HTTP Cache component of API Platform implements the HTTP Cache specification to improve performance. It provides built-in integrations with various HTTP cache servers and services, including Varnish and Souin, allowing for efficient caching of API responses.Overview of API Platform Core
mainAPI Platform Core is a system designed for creating hypermedia-driven REST and GraphQL APIs. It is a core component of the larger API Platform framework and is designed to be integrated with the Symfony framework via a dedicated bundle. It provides native support for several industry-standard open formats, enabling the creation of high-performance, API-first projects that are highly extensible.Use JSON:API with API Platform
mainAPI Platform provides a component for implementing the JSON:API specification. This allows you to build APIs that follow this popular JSON-based standard for structured data exchange, including features like resource relationships, compound documents, and standardized error formats.Use HAL (Hypertext Application Language) in API Platform
mainAPI Platform includes a component for implementing the HAL (Hypertext Application Language) specification. This allows your API to provide hypermedia links and structured representations of resources, enabling clients to discover relationships between resources through links. For detailed configuration and implementation details, refer to the official API Platform documentation on content negotiation.Use Doctrine MongoDB ODM with API Platform
mainAPI Platform provides integration for Doctrine MongoDB ODM. This allows you to build REST or GraphQL APIs using MongoDB as your data store by leveraging Doctrine's Object-Document Mapper (ODM) capabilities within the API Platform framework.