olelo / cassy
Small helper to create olelo Cassy URLs in PHP
Installs: 2 060
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 3
Requires (Dev)
- orchestra/testbench: ~3.0
This package is not auto-updated.
Last update: 2025-03-12 11:05:24 UTC
README
This is a little helper to easily include the olelo Cassy CDN in your PHP projects.
Prerequisites
You need an olelo account and the Cassy module enabled. Technically you could use this package anyway - however, there would be no sense in it.
Installation
You can install the package via composer:
composer require olelo/cassy
Usage
$cassy = new \Olelo\Cassy\Cassy();
$yourCdnUrl = $cassy->getCdnUrl('https://your-url.com/something');
Laravel
A Laravel service provider with a facade is contained in this package. It is automatically detected. You can use it like:
use Olelo\Cassy\Facades\Cassy;
$yourCdnUrl = Cassy::cdn('https://your-url.com/something');