PHPackages                             faryar/cdnjs - 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. [Templating &amp; Views](/categories/templating)
4. /
5. faryar/cdnjs

ActiveLaravel[Templating &amp; Views](/categories/templating)

faryar/cdnjs
============

this is for cdnjs

1.0.2(7y ago)526MITPHP

Since Oct 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/faryar76/laravel-cdnjs-package)[ Packagist](https://packagist.org/packages/faryar/cdnjs)[ RSS](/packages/faryar-cdnjs/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (7)Used By (0)

laravel-cdnjs-package
=====================

[](#laravel-cdnjs-package)

[![logo](https://github.com/faryar76/laravel-cdnjs-package/raw/master/simple.png)](https://github.com/faryar76/laravel-cdnjs-package/blob/master/simple.png)

[![Latest Stable Version](https://camo.githubusercontent.com/199759f2c88c5c445dbd506191495c9d9f959d2fc58ae2787dc8ab6de04516cd/68747470733a2f2f706f7365722e707567782e6f72672f6661727961722f63646e6a732f762f737461626c65)](https://packagist.org/packages/faryar/cdnjs)[![Total Downloads](https://camo.githubusercontent.com/d8909e6a804ed302e749c9a38463f3271ac463cabf3a469a519d255d3dc0d005/68747470733a2f2f706f7365722e707567782e6f72672f6661727961722f63646e6a732f646f776e6c6f616473)](https://packagist.org/packages/faryar/cdnjs)[![Latest Unstable Version](https://camo.githubusercontent.com/9ac209baf7b0feb4a649a428c2f59877c8e7cbc6691476ad0fa10514a5e55e6d/68747470733a2f2f706f7365722e707567782e6f72672f6661727961722f63646e6a732f762f756e737461626c65)](https://packagist.org/packages/faryar/cdnjs)[![Software License](https://camo.githubusercontent.com/d681f8298dd4e83c020388da14ca0ae0cad96f76342ae9108f2816e19b2b8daa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d726f756e642d737175617265)](LICENSE.md)[![StyleCI](https://camo.githubusercontent.com/32fd859030d8ea273a12611c85b9911c8558f025356749d0227e717471963220/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135343937393630392f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/154979609)[![Code Coverage](https://camo.githubusercontent.com/ff36fc658a3ac31d3c24b37b34ad7e13f2c9c8ab8ef88378c88639ade2ee67f8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696d616e676861666f6f7269312f6c61726176656c2d6865796d616e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/imanghafoori1/laravel-heyman/?branch=master)

**[laravel faryar/cdnjs ](https://packagist.org/packages/faryar/cdnjs)** is a laravel blade package for fast and cleaner laravel programming.

Description
-----------

[](#description)

by using this package your app will get libraries from [cdnjs.com](https://cdnjs.com) and save library link in storage for next time
in the other words just in first time package will request to cdnjs for check package exists and get link

installation
------------

[](#installation)

#### no need config anything install latest version with

[](#no-need-config-anything--install-latest-version-with)

```
composer require faryar/cdnjs

```

usage
-----

[](#usage)

### in blade file

[](#in-blade-file)

```
@cdnjs('library_name')
@cdnjs('bootstrap.css')
@cdnjs('jquery.js')
@cdnjs('jquery.min.js')
or use array
@cdnjs(['jquery.min.js','bootstrap.css','select2.js,'vue.js'])

```

#### output for js

[](#output-for-js)

```

```

#### output for css

[](#output-for-css)

```

```

TODO

- support auto laod to laravel provider
- array support
- detect local libraries
- create new config file
- select version of library
- download libraries offline of library

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

6

Last Release

2755d ago

Major Versions

0.3.0 → 1.0.02018-10-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c88349e79e20cf3579a72c1365b06ba789e2f2cc34e5ce197f5b52232d383d0?d=identicon)[faryar](/maintainers/faryar)

---

Top Contributors

[![faryar76](https://avatars.githubusercontent.com/u/39999915?v=4)](https://github.com/faryar76 "faryar76 (37 commits)")

---

Tags

urllaravelcssJSbladeassetcdndirectivecdnjs

### Embed Badge

![Health badge](/badges/faryar-cdnjs/health.svg)

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

###  Alternatives

[spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

638855.8k9](/packages/spatie-laravel-blade-javascript)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[angus-mcritchie/blade-boost-directive

Lightning-Fast Blade Components with `@boost` Directive

3910.0k](/packages/angus-mcritchie-blade-boost-directive)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)

PHPackages © 2026

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