PHPackages                             timclifford/fastly\_crudl - 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. timclifford/fastly\_crudl

AbandonedArchivedLibrary[API Development](/categories/api)

timclifford/fastly\_crudl
=========================

A PHP wrapper for using Fastly API

v2.2.1(5y ago)12362[1 issues](https://github.com/timclifford/fastly-crudl/issues)[7 PRs](https://github.com/timclifford/fastly-crudl/pulls)MITPHPPHP ~7.3

Since Aug 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/timclifford/fastly-crudl)[ Packagist](https://packagist.org/packages/timclifford/fastly_crudl)[ RSS](/packages/timclifford-fastly-crudl/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (10)Used By (0)

Fastly-CRUDL
============

[](#fastly-crudl)

PHP wrapper for Fastly API

Requires Fastly API key and service id environment variables to be set.

For example:

```
export FASTLY_API_KEY="2arxxxxxxxxxxxxxxxxxxxxxxxxRIL"
export FASTLY_SERVICE_ID="5CLxxxxxxxxxxxxxxxxxxOoLP"
```

or store inside `.env` file

Usage
-----

[](#usage)

You can install the package via composer:

```
composer require ....

```

Connect to a Fastly API by creating a new Fastly object with an API token and Service ID:

```
use Fastly\Fastly;

...

$fastly_api_key = getenv('FASTLY_API_KEY');
$fastly_service_id  = getenv('FASTLY_SERVICE_ID');

$fastly = new Fastly($fastly_api_key, $fastly_service_id);

```

Then you are able to send requests to the API.

### Generic Send Requests

[](#generic-send-requests)

You can define the method, API uri path and provide options which will go ito the body of the request here.

```
// Get stats
$stats = $fastly->send('GET', 'stats?from=1+day+ago');

// Get Keys
$keys = $fastly->send('GET', 'tls/private_keys');

// Get Single Key
$key = $fastly->send('GET', 'tls/private_keys/2XbVFa2kUN1d4rGDBFYkzp');

// Get Domains
$domain = $fastly->send('GET', 'service/'. $fastly_service_id .'/version/1/domain/check_all');
$domains = $fastly->send('GET', 'tls/domains');

// Get activations
$activations = $fastly->send('GET', 'tls/activations');

// Get Certificates
$certificates = $fastly->send('GET', 'tls/certificates');
$certificate = $fastly->send('GET', 'tls/certificates/1JP0gerEJXIxImRnRLckug');

// Purge all
$purge = $fastly->send('POST', 'service/'. $fastly_service_id .'/purge_all');
```

### Private Keys

[](#private-keys)

```
$private_keys = $fastly->private_keys;

$get_keys = $private_keys->get_private_keys();

$key = $private_keys->get_private_key($id);

$new_key = $private_keys->send_private_key($key, $name = '');
```

### Certificates

[](#certificates)

```
$certificates = $fastly->certificates;

$certificates->get_tls_certificates();
$certificates->get_tls_certificate("1JP0gerEJXIxImRnRLckug");
$certificates->send_tls_certificate($cert);
$certificates->update_tls_certificate($id, $certificate);
$certificates->delete_tls_certificate($id);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~115 days

Total

2

Last Release

1974d ago

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/2339381?v=4)[Tim Clifford](/maintainers/timclifford)[@timclifford](https://github.com/timclifford)

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

---

Top Contributors

[![bomoko](https://avatars.githubusercontent.com/u/297936?v=4)](https://github.com/bomoko "bomoko (3 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (1 commits)")

---

Tags

hacktoberfestphpapifastly

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/timclifford-fastly-crudl/health.svg)

```
[![Health](https://phpackages.com/badges/timclifford-fastly-crudl/health.svg)](https://phpackages.com/packages/timclifford-fastly-crudl)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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