A New API Binding: cloudflare-php
Sep 23, 2017Junade Ali
Summary
This post announces the release of an official PHP binding for the Cloudflare API (cloudflare-php). It highlights the design decisions made, including the exclusive use of PHP 7 for modern features like scalar type hinting and return type declarations, and the adoption of object composition and dependency injection for flexibility and maintainability. The post also details how the binding facilitates testing through adherence to PSR-7 standards and the use of mocking.
More from the Open Source Software & Community Contributions trail
- New URLPattern API brings improved pattern matching to Node.js and Cloudflare Workers
- Open source all the way down: Upgrading our developer documentation
- polyfill.io now available on cdnjs: reduce your supply chain risk
- Open sourcing Pingora: our Rust framework for building programmable network services
- Open sourcing our fork of PgBouncer