{"id":22731028,"url":"https://github.com/genentech/laravel-cdn-middleware","last_synced_at":"2025-03-30T01:29:46.071Z","repository":{"id":29414158,"uuid":"32949692","full_name":"Genentech/laravel-cdn-middleware","owner":"Genentech","description":"A Basic integration for pull zone CDN's for laravel.","archived":false,"fork":false,"pushed_at":"2016-08-02T22:22:05.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-03-29T10:34:13.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ray-lothian/extractor","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Genentech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-26T20:17:32.000Z","updated_at":"2016-08-02T22:21:35.000Z","dependencies_parsed_at":"2022-09-06T18:11:36.712Z","dependency_job_id":null,"html_url":"https://github.com/Genentech/laravel-cdn-middleware","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Flaravel-cdn-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Flaravel-cdn-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Flaravel-cdn-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Flaravel-cdn-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genentech","download_url":"https://codeload.github.com/Genentech/laravel-cdn-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246264476,"owners_count":20749471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T19:19:08.960Z","updated_at":"2025-03-30T01:29:46.053Z","avatar_url":"https://github.com/Genentech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel 5 CDN Middleware\nA Basic middleware integration for pull zone CDN's for laravel\n\n\n\n\n# Composer Installation\nAdd/integrate the following to your project's composer.json file. \n\n```javascript\n\"repositories\": [ \n\t{\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git@github.com:Genentech/laravel5-cdn-views.git\"\n\t}\n],\n\"require\": {\n\t\"Genentech/laravel5-cdn-views\": \"dev-master\"\n}\n```\n\n# Configuration\nAfter it's installed run\n```bash\nphp artisan vendor:publish\n```\nAnd then configure the file at /config/laravel5-cdn-views.php\n\n# Usage\nadd the following to your providers list\n```php\nGenentech\\CdnViews\\CdnViewServiceProvider\n```\nand add the following to app/Http/Kernel.php\n```php\n Genentech\\CdnViews\\Middleware\\UseCDN\n```\n\nroot relative urls will be transformed, and //:resource urls will not \nnot root relative urls will be left intact and logged\n\nYou can also invoke the CDN helper yourself and convert urls using\n```php\n$pullzone = 'https://cdn.com'; // or Config::get('laravel5-cdn-views.cdn_url');\n$validTags = ['style', 'scripts']; // or Config::get('laravel5-cdn-views.tags');\n$cdn_helper =  new CdnHelper(CDN_URL, $this-\u003evalidTags);\n$cdn_url = $cdn_helper-\u003econvertUrl('/foo.txt');\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenentech%2Flaravel-cdn-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenentech%2Flaravel-cdn-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenentech%2Flaravel-cdn-middleware/lists"}