New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

chriscubos/jspack

Laraval collection of public assets packages for your development.
16
Install
composer require chriscubos/jspack
Latest Version:1.0.0
PHP:~5.4|~7.0
License:MIT
Last Updated:Sep 4, 2016
Links: GitHub  ·  Packagist
Maintainer: chriscubos

chriscubos/jspack

A LaravelPHP package for your important jQuery libraries preloaded in your [/public/packages] folder. With easy to use blade directives and calls.

Install

Via Composer

$ composer require chriscubos/jspack

Setup [config/app.php]

// add this
	'providers' => [

		Chriscubos\JsPack\JsPackServiceProvider::class,

	],

Usage

<?php echo JsPack::packages(['datatables', 'bootstrap-wysihtml5']);?>
<?=JsPack::packages(['datatables', 'bootstrap-wysihtml5']);?>

// blade must use {!! !!}
{!!JsPack::packages(['datatables', 'bootstrap-wysihtml5'])!!}

// Directive
@jspack(['datatables', 'bootstrap-wysihtml5'])
Output
<script src='/packages/datatables/dataTables.bootstrap.min.js'></script>
<link href='/packages/datatables/dataTables.bootstrap.css' rel='stylesheet'/>
<link href='/packages/datatables/jquery.dataTables.min.css' rel='stylesheet'/>
<script src='/packages/datatables/jquery.dataTables.min.js'></script>
<script src='/packages/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js'></script>
<link href='/packages/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css' rel='stylesheet'/>

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email chriscubos@outlook.com instead of using the issue tracker.

Credits

  • [Christopher John Cubos][link-author]
  • [Ethan Sky Cubos][link-author]
  • [All Contributors][link-contributors]

License

The MIT License (MIT). Please see License File for more information.

Related Packages

valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

436,338 234
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

23,466 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

18,346 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

12,635 0
php
cline/sequencer

Sequential migration and operation orchestration for Laravel

12,218 0
php

Version History

Version Released PHP License
1.0.0 ~5.4|~7.0 MIT