PHPackages                             sergkeim/php-cloudflare-api - 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. sergkeim/php-cloudflare-api

ActiveLibrary[API Development](/categories/api)

sergkeim/php-cloudflare-api
===========================

PHP Client for Cloudflare API.

v0.5.1(1y ago)196.3k↑250%6[7 PRs](https://github.com/SergkeiM/php-cloudflare-api/pulls)MITPHPPHP ^8.0

Since Aug 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/SergkeiM/php-cloudflare-api)[ Packagist](https://packagist.org/packages/sergkeim/php-cloudflare-api)[ RSS](/packages/sergkeim-php-cloudflare-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (21)Used By (0)

PHP Client for Cloudflare API
=============================

[](#php-client-for-cloudflare-api)

A simple PHP Client for [Cloudflare API](https://developers.cloudflare.com/api/).

[![Banner](https://repository-images.githubusercontent.com/839240046/29efc427-1f2c-4248-9b1f-b006699d344b)](https://repository-images.githubusercontent.com/839240046/29efc427-1f2c-4248-9b1f-b006699d344b)

 [ ![Build Status](https://camo.githubusercontent.com/933579d539116cbcf654742598fe1d7a0c8e572ba37ab57470f25e170452eaa5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736572676b65696d2f7068702d636c6f7564666c6172652d6170692f74657374732e796d6c3f6c6162656c3d5465737473267374796c653d666c61742d737175617265) ](https://github.com/sergkeim/php-cloudflare-api/actions?query=workflow%3ATests) [ ![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265) ](LICENSE) [ ![Packagist Downloads](https://camo.githubusercontent.com/0f9cd17d74e13af9fe6d6d42337bd0e6f4f7cbd078b08d87c21933b2983803fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736572676b65696d2f7068702d636c6f7564666c6172652d6170693f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/sergkeim/php-cloudflare-api) [ ![Latest Version](https://camo.githubusercontent.com/d1d8aea9bbcdc75f3863115daf18bc231ffe732f707376aeff01e07256dc4816/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736572676b65696d2f7068702d636c6f7564666c6172652d6170693f7374796c653d666c61742d737175617265) ](https://github.com/sergkeim/php-cloudflare-api/releases)

> **Note**: This package is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. [See Coverage](https://php-cloudflare-api.nuxt.space/coverage)

This package provides convenient access to the Cloudflare REST API using PHP.

- [☁️ Cloudflare API v4](https://developers.cloudflare.com/api/)
- [📄 Documentation](https://php-cloudflare-api.nuxt.space/)
- [📓 Coverage](https://php-cloudflare-api.nuxt.space/coverage)

Features ✨
----------

[](#features-)

- PHP &gt;= 8.0
- Minimal API around the [Guzzle HTTP client](https://github.com/guzzle/guzzle)
- Light and fast thanks to lazy loading of API classes
- Extensively documented
- Laravel &gt;= 9 support

Quick install 🚀
---------------

[](#quick-install-)

Via [Composer](https://getcomposer.org).

This command will get you up and running quickly.

```
composer require sergkeim/php-cloudflare-api
```

Thanks 🙏
--------

[](#thanks-)

- Thanks to [Cloudflare](https://developers.cloudflare.com/api/) for the high quality API and documentation.
- Thanks to [KnpLabs](https://github.com/KnpLabs) for [php-github-api](https://github.com/KnpLabs/php-github-api) used as inspiration for this package.
- Thanks to [Graham Campbell](https://github.com/GrahamCampbell) for [Laravel TestBench](https://github.com/GrahamCampbell/Laravel-TestBench).

License 📎
---------

[](#license-)

`php-cloudflare-api` is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details

---

Cloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

14

Last Release

622d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1637fa8f538659caa7bb6db064da7a14cfbe936e259436d7603a1289a48e305?d=identicon)[SergkeiM](/maintainers/SergkeiM)

---

Top Contributors

[![SergkeiM](https://avatars.githubusercontent.com/u/3294939?v=4)](https://github.com/SergkeiM "SergkeiM (133 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![necenzurat](https://avatars.githubusercontent.com/u/145449?v=4)](https://github.com/necenzurat "necenzurat (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

cloudflarecloudflare-apiphpapicloudflareCloudFlare API

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sergkeim-php-cloudflare-api/health.svg)

```
[![Health](https://phpackages.com/badges/sergkeim-php-cloudflare-api/health.svg)](https://phpackages.com/packages/sergkeim-php-cloudflare-api)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

77273.8k](/packages/sebdesign-artisan-cloudflare)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
