PHPackages                             ktc/cdn - 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. ktc/cdn

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

ktc/cdn
=======

Content server for Lavavel/Voyager KTC

1.0.62(8y ago)017MITPHPPHP &gt;=7.0.0

Since Dec 7Pushed 8y agoCompare

[ Source](https://github.com/ktc-repository/cdn)[ Packagist](https://packagist.org/packages/ktc/cdn)[ Docs](https://the-control-group.github.io/voyager/)[ RSS](/packages/ktc-cdn/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (62)Used By (0)

CDN KTC FOR LARAVEL
===================

[](#cdn-ktc-for-laravel)

Steps for installing the CDN for lavavel and voyager.

---

Envoy Task Runner
-----------------

[](#envoy-task-runner)

Complete documentation on the **official website of [Laravel](https://laravel.com/docs/5.5/envoy)**

It runs on the console the following command of composer

> composer global require **laravel/envoy**

Install the library
-------------------

[](#install-the-library)

> composer require ktc/cdn

Add the service provider
------------------------

[](#add-the-service-provider)

Edit the file **/config/app.php**

Adds a new value at the end of the array **providers**

```
'providers' => [
//....
//...
//.
CDN\CDNServiceProvider::class
```

Configure new driver
--------------------

[](#configure-new-driver)

Edit the file **/config/filesystems.php**

Adds a new value at the end of the array **disks**

```
'disks' => [
//....
//...
//.
'sftp' => [
	'driver'   => 'sftp',
	'host' => env('CDN_SSH_HOST'),
	'port' => 22,
	'username' => env('CDN_SSH_USERNAME'),
	'password' => '',
	'privateKey' => env('CDN_SSH_PRIVATE_KEY_PATH'),
	'root' => env('CDN_BASE').'/'.env('CDN_BASE_SUBDIRECTORY'),
]
```

Create the new repository in the CDN Server
-------------------------------------------

[](#create-the-new-repository-in-the-cdn-server)

> php artisan cdn:install

Follow the instructions

After generating the installation your project will contain the following keys:

.env
----

[](#env)

**FILESYSTEM\_DRIVER**It defines the new driver to use (default is sftp).

**CDN\_BASE**Actual absolute path where are stored across content repositories

**CDN\_BASE\_SUBDIRECTORY**ID only, create a directory for the project, do not use special characters or spaces.

**CDN\_SSH\_USERNAME**User's ssh connection that is used locally.

**CDN\_SSH\_PRIVATE\_KEY\_PATH**Key SSH connection, the path must be absolute to the computer.

**CDN\_SSH\_HOST**Connection to the CDN host

**CDN\_PUBLIC**Access for the public to the CDN

**Example**

```
FILESYSTEM_DRIVER=sftp
CDN_BASE=/example/path
CDN_BASE_SUBDIRECTORY=exampleProject
CDN_SSH_USERNAME=root
CDN_SSH_PRIVATE_KEY_PATH=/Users/example/.ssh/id_rsa
CDN_SSH_HOST=experience.ktcagency.com
CDN_PUBLIC=cdn.experience.ktcagency.com
```

Ready.

---

If you are using Voyager
------------------------

[](#if-you-are-using-voyager)

Edit the file **/config/voyager.php**

Changes the value of **storage**

```
'storage' =>
	[
		'disk' => 'sftp',
	],
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Total

61

Last Release

3069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3de3c825beb06d2bd466ea68a6018bc43e8795b3b7f1bf8019e029fd172948c3?d=identicon)[ktc](/maintainers/ktc)

---

Top Contributors

[![ktc-repository](https://avatars.githubusercontent.com/u/34355644?v=4)](https://github.com/ktc-repository "ktc-repository (67 commits)")

---

Tags

laravelcdnvoyager

### Embed Badge

![Health badge](/badges/ktc-cdn/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[genealabs/laravel-changelog

A Laravel Nova tool.

55250.7k](/packages/genealabs-laravel-changelog)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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