PHPackages                             pointybeard/keycdnasset - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pointybeard/keycdnasset

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pointybeard/keycdnasset
=======================

Library for pushing assets to KeyCDN, generating links, and checking availablity.

1.0.3(7y ago)036MITPHPPHP &gt;=5.6.6

Since Oct 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pointybeard/keycdnasset)[ Packagist](https://packagist.org/packages/pointybeard/keycdnasset)[ RSS](/packages/pointybeard-keycdnasset/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

KeyCDN Asset
============

[](#keycdn-asset)

- Version: v1.0.0
- Date: Oct 08 2018
- [Release notes](https://github.com/pointybeard/keycdnasset/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/keycdnasset)

[![Latest Stable Version](https://camo.githubusercontent.com/4c0922027c64da94940971096b984c5a2364d64acdffe0e31a948a47335f6d62/68747470733a2f2f706f7365722e707567782e6f72672f706f696e747962656172642f6b657963646e61737365742f76657273696f6e)](https://packagist.org/packages/pointybeard/keycdnasset) [![License](https://camo.githubusercontent.com/9152c4dc669d8af6fb26e52da550c50015a7f5fd8bd829e8632f4fdeeb86ce24/68747470733a2f2f706f7365722e707567782e6f72672f706f696e747962656172642f6b657963646e61737365742f6c6963656e7365)](https://packagist.org/packages/pointybeard/keycdnasset)

Library for checking availability of assets and pushing new assets to [KeyCDN](https://www.keycdn.com/).

Installation
------------

[](#installation)

KeyCDN Asset is installed via [Composer](http://getcomposer.org/). To install, use `composer require pointybeard/keycdnasset` or add `"pointybeard/keycdnasset": "~1.0"` to your `composer.json` file.

Usage Example
=============

[](#usage-example)

Here is a quick example of how to use this group of classes

```

include "vendor/autoload.php";
use pointybeard\KeyCDNAsset\Lib;

$zone = new Lib\Zone(
    "myzone",
    "https://myzone-90f.kxcdn.com",
    Lib\Zone::FLAG_SECURE
);

$credentials = new Lib\Credentials(
    "my-username",
    "my-secure-token-key"
)

$asset = new Lib\Asset(
    $credentials,
    "/path/to/asset/on/this/zone/file.zip",
    $zone
)

### CHECKING AVAILABILITY ###
var_dump($asset->available());

### GENERATING A LINK TO THE ASSET ###
print (string)$asset->link();

### PUSHING AN ASSET ###

try{
    $result = NULL;

    //This ensures when the file is pushed, it doesn't retain all the source path info.
    chdir('/some/local/assets');

    $asset = Lib\Asset::push(
        $credentials,
        "file.zip",
        $zone,
        NULL, //Specify a different KeyCDN Host value here
        $result
    );
    var_dump($asset, $asset->available());

} catch (Lib\Exceptions\KeyCDNFailedToSyncException $ex) {
    print "Looks like pushing to CDN has failed - {$ex->getMessage()}";
    exit;

} finally {
    var_dump($result);
}

```

Support
-------

[](#support)

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/pointybeard/keycdnasset/issues), or better yet, fork the library and submit a pull request.

Contributing
------------

[](#contributing)

We encourage you to contribute to this project. Please check out the [Contributing documentation](https://github.com/pointybeard/keycdnasset/blob/master/CONTRIBUTING.md) for guidelines about how to get involved.

License
-------

[](#license)

"KeyCDN Asset" is released under the [MIT License](http://www.opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~5 days

Total

4

Last Release

2754d ago

### Community

Maintainers

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

---

Top Contributors

[![pointybeard](https://avatars.githubusercontent.com/u/24912?v=4)](https://github.com/pointybeard "pointybeard (8 commits)")

### Embed Badge

![Health badge](/badges/pointybeard-keycdnasset/health.svg)

```
[![Health](https://phpackages.com/badges/pointybeard-keycdnasset/health.svg)](https://phpackages.com/packages/pointybeard-keycdnasset)
```

###  Alternatives

[icehouse-ventures/laravel-mermaid

Simple package to generate diagrams in Laravel using the Mermaid.js library

2630.0k](/packages/icehouse-ventures-laravel-mermaid)

PHPackages © 2026

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