PHPackages                             rc4347/cloudfront-signer - 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. rc4347/cloudfront-signer

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

rc4347/cloudfront-signer
========================

0.0.4(2y ago)17.2k↓38.5%PHPPHP &gt;=7.4.0

Since Dec 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/RC4347/cloudfront-signer)[ Packagist](https://packagist.org/packages/rc4347/cloudfront-signer)[ RSS](/packages/rc4347-cloudfront-signer/feed)WikiDiscussions main Synced 1mo ago

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

Cloudfront Signer Service for PHP
=================================

[](#cloudfront-signer-service-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/1b15dbf0ddb66d3e3bc065455faf12f5d70947266ad539f4a1a5f788efea17ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7263343334372f636c6f756466726f6e742d7369676e65722e737667)](https://packagist.org/packages/rc4347/cloudfront-signer)[![Total Downloads](https://camo.githubusercontent.com/4e2eb7f2b882c5d86ac84d800ae7730b2cca86f3c62a368a5dea71b1fe9524a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7263343334372f636c6f756466726f6e742d7369676e65722e737667)](https://packagist.org/packages/rc4347/cloudfront-signer)

This is a simple [PHP](https://php.net/) service for making it easy include the official [AWS SDK for PHP](https://github.com/aws/aws-sdk-php) in your PHP applications.

It's helps you to sign your files or resources.

Jump To:

- [Getting Started](_#Getting-Started_)
- [More Resources](_#Resources_)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

The PHP Service can be installed via [Composer](http://getcomposer.org) by requiring the `rc4347/cloudfront-signer` package in your project's `composer.json`.

```
{
    "require": {
        "rc4347/cloudfront-signer": "^0.0.4"
    }
}
```

Usage
-----

[](#usage)

```
use RC4347\CloudFrontSigner\credentials\AccessConfig;
use RC4347\CloudFrontSigner\credentials\ClientConfig;
use RC4347\CloudFrontSigner\credentials\ExpireConfig;
use RC4347\CloudFrontSigner\SignedUrlService;

# configuration
$client = new ClientConfig('latest', 'default', '');
$expire = time() + 300; # returns 5 minutes
$access = new AccessConfig('', ''); # private key can get file or string
$resourceKey = 'https://.cloudfront.net/example/example.png';
$config = new ExpireConfig($resourceKey, $expire);
# Execution
/**
* @returns string "https://.cloudfront.net/example/example.png?Expires=&Signature=&Key-Pair-Id="
 */
$urlService = new SignedUrlService($config, $client, $access);
return $urlService->run();
/**
 * if policy param is empty it will be get default policy.
* @returns array|string [
        "CloudFront-Policy": ,
        "CloudFront-Signature": ,
        "CloudFront-Key-Pair-Id":
    ]
 */
$policy = config->expires}}
            }
        }
    ]
}
POLICY;

$cookieService = new SignedCookieService($config, $client, $access, $policy) # policy is optional
return $cookieService->run();
```

Resources
---------

[](#resources)

For more information:

- [AWS SDK for PHP on Github](http://github.com/aws/aws-sdk-php/)
- [AWS SDK for PHP website](http://aws.amazon.com/sdkforphp/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~52 days

Total

5

Last Release

1052d ago

### Community

Maintainers

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

---

Top Contributors

[![DevNameless1](https://avatars.githubusercontent.com/u/73064149?v=4)](https://github.com/DevNameless1 "DevNameless1 (6 commits)")

---

Tags

awscloudfrontphpsecure

### Embed Badge

![Health badge](/badges/rc4347-cloudfront-signer/health.svg)

```
[![Health](https://phpackages.com/badges/rc4347-cloudfront-signer/health.svg)](https://phpackages.com/packages/rc4347-cloudfront-signer)
```

###  Alternatives

[aws/aws-sdk-php-symfony

A Symfony bundle for v3 of the AWS SDK for PHP

36517.7M22](/packages/aws-aws-sdk-php-symfony)[csharpru/vault-php

Best Vault client for PHP that you can find

8410.3M4](/packages/csharpru-vault-php)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[helgesverre/extractor

AI-Powered Data Extraction for your Laravel application.

22128.0k](/packages/helgesverre-extractor)[dreamonkey/laravel-cloudfront-url-signer

Laravel 5.6+ wrapper around CloudFront canned signed URLs

54750.7k](/packages/dreamonkey-laravel-cloudfront-url-signer)[foxxmd/laravel-elasticbeanstalk-cron

Ensure only one Laravel instance is running CRON jobs in an EB environment

62299.6k](/packages/foxxmd-laravel-elasticbeanstalk-cron)

PHPackages © 2026

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