/plushcap/analysis/cloudflare/cloudflare-php-api-binding

A New API Binding: cloudflare-php

What's this blog post about?

In September 2017, Cloudflare introduced a new official binding for PHP, which is available via Packagist as cloudflare/sdk. The design of the API was based on simple object composition to provide a more straightforward object model and higher flexibility. The package also uses Dependency Injection to allow different components in the API to vary independently. Additionally, it utilizes the PSR-7 standard for HTTP responses, making it easier to add further abstractions for additional HTTP clients and mock HTTP responses for unit testing.

Company
Cloudflare

Date published
Sept. 23, 2017

Author(s)
Junade Ali

Word count
1231

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.