Open-source PHP projects categorized as API

Top 23 PHP API Projects

  • GitHub repo graphql-php

    A PHP port of GraphQL reference implementation

    Project mention: Best way to hit multiple endpoints on app open | | 2021-02-05

    Check out

  • GitHub repo Polr

    :aerial_tramway: A modern, powerful, and robust URL shortener (by cydrobolt)

    Project mention: Looking for a self hosted link sharer/link shortener | | 2021-02-26

    Pole might be a good alternative,

  • GitHub repo wp-graphql

    :rocket: GraphQL API for WordPress

    Project mention: 🦸🏿‍♂️ The GraphQL API for WordPress is now transpiled from PHP 8.0 to 7.1 | | 2021-04-11

    FYI - there's a different plugin called WP-GraphQL which is a more established GraphQL solution. The one linked is part of a larger project by the author while WP-GraphQL is better focused. I also work with hundreds of large-scale WordPress setups and those that use GraphQL use WP-GraphQL, I only recently learned about this guy through Reddit posts - maybe they are upping their marketing (or it was a coincidence).

  • GitHub repo PHP-CRUD-API

    Single file PHP script that adds a REST API to a SQL database

    Project mention: Public API for history of all votes and messages. | | 2021-04-01

    you can see more about its api at /openapi and

  • GitHub repo NelmioApiDocBundle

    Generates documentation for your REST API from annotations

    Project mention: Json schema from entity or DTO | | 2021-01-12

    If you want to generate some documentation, you can use nelmio/api-doc-bundle. It uses zircote/swagger-php, which allows you to use annotation to generate the schema and documentation. You can also generate a configuration file containing the schema.

  • GitHub repo core

    The server component of API Platform: hypermedia and GraphQL APIs in minutes (by api-platform)

    Project mention: Can Api Platform's POST endpoint insert collection of items? | | 2021-01-14

    Nope, not yep :

  • GitHub repo core

    OPNsense GUI, API and systems backend (by opnsense)

    Project mention: Very disappointed | | 2021-04-13

    Consider the opnsense fork rather than pfsense.

  • GitHub repo Firebase Admin SDK for PHP

    Unofficial Firebase Admin SDK for PHP

  • GitHub repo countries-states-cities-database

    🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities

    Project mention: Fetch country, state, cities data from component or database? | | 2021-01-09

    The latter one, though, says that it got its data from countries-states-cities-database, which has some json files with the countries, states and cities. The cities json file is huge. I really don't think that I would ever use all of them, I would only need data from North and South America, at most.

  • GitHub repo Negotiation

    Content Negotiation tools for PHP.

  • GitHub repo Hateoas

    A PHP library to support implementing representations for HATEOAS REST web services.

  • GitHub repo Fusio

    Open source API management platform

    Project mention: Fusio 2.0 released - Open source API management platform | | 2021-02-06
  • GitHub repo Yasumi

    The easy PHP Library for calculating holidays

  • GitHub repo wsdl2phpgenerator

    Simple utility and class library for generating php classes from a wsdl file.

  • GitHub repo sysPass

    Systems Password Manager

  • GitHub repo array-to-xml

    A simple class to convert an array to xml

    Project mention: Using Laravel Resource Collections with exports | | 2021-04-11

    Once you have created the resource you can reuse it as it was originally intended as an API response, but you could also use it with another Spatie package called array to xml to convert your array into an XML file instead of a CSV or Excel file.

  • GitHub repo UniFi-API-browser

    Tool to browse data exposed by Ubiquiti's UniFi Controller API (demo:

    Project mention: Access Point Client Tracking - How do I go about determining the current AP being used by the client? | | 2021-03-17
  • GitHub repo OverblogGraphQLBundle

    This bundle provides tools to build a complete GraphQL server in your Symfony App.

    Project mention: Access control in GraphQL using Symfony | | 2021-02-02

    Authorization is part of almost any web application and controlling access to specific data is essential for application security. The same goes for GraphQL APIs and with help of Overblog's GraphQL Bundle, this can be done easily.

  • GitHub repo UniFi-API-client

    A PHP API client class to interact with Ubiquiti's UniFi Controller API

    Project mention: Disable clients on whim? | | 2021-02-05

    For wifi clients you can use this. Create some commands to enable/disable clients. These commands can be executed via mobile phone with apps like ssh button with a single click. Works fine for me.

  • GitHub repo Youtube

    🔥 Laravel PHP Facade/Wrapper for the Youtube Data API (by alaouy)

    Project mention: The Best Sailing Channels on YouTube! | | 2021-02-19

    I am using Laravel, so I use

  • GitHub repo Flextype

    Hybrid Content Management System with the freedom of a headless CMS and with the full functionality of a traditional CMS

  • GitHub repo JWTRefreshTokenBundle

    Implements a Refresh Token system over Json Web Tokens in Symfony

    Project mention: I ask for guidance from experienced Symfony developers about best way to achieve a modular architecture with Symfony 5. | | 2021-03-10
  • GitHub repo wp-graphql-acf

    WPGraphQL for Advanced Custom Fields

    Project mention: Gatsby + WP as CMS | | 2021-02-15

    Hey dude, I've actually recently just done the same and the way I did it it was to install two more plugins on the WordPress instance - advanced custom fields wp-graphql-acf ( - this allows you to define custom content fields for pages /posts so you can define your content that way rather than having to pre-define it in HTML

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-13.


What are some of the best open-source API projects in PHP? This list will help you:

Project Stars
1 graphql-php 4,012
2 Polr 3,764
3 wp-graphql 2,860
4 PHP-CRUD-API 2,704
5 NelmioApiDocBundle 1,942
6 core 1,810
7 core 1,570
8 Firebase Admin SDK for PHP 1,486
9 countries-states-cities-database 1,202
10 Negotiation 1,198
11 Hateoas 971
12 Fusio 952
13 Yasumi 791
14 wsdl2phpgenerator 773
15 sysPass 771
16 array-to-xml 750
17 UniFi-API-browser 688
18 OverblogGraphQLBundle 630
19 UniFi-API-client 613
20 Youtube 611
21 Flextype 437
22 JWTRefreshTokenBundle 427
23 wp-graphql-acf 370