PHPackages                             elvendor/imgjss - 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. elvendor/imgjss

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

elvendor/imgjss
===============

Imgjss Package for Laravel 4

v0.8(11y ago)364MITPHPPHP &gt;=5.4.0

Since Jun 18Pushed 11y ago2 watchersCompare

[ Source](https://github.com/elvendor/imgjss)[ Packagist](https://packagist.org/packages/elvendor/imgjss)[ Docs](http://github.com/elvendor/imgjss)[ RSS](/packages/elvendor-imgjss/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

imgjss Laravel Package
======================

[](#imgjss-laravel-package)

[Imgjss](https://github.com/elvendor/imgjss) is a simple [Laravel 4](http://laravel.com) package that provides handy way of including assets into your `.blade.php` files. Now you can use `HTML::style()`, `HTML::script()` and `HTML::image()` via short Blade syntax.

Join our [Russian Laravel Community](https://gitter.im/LaravelRUS/chat) webchat on Gitter!

Features
--------

[](#features)

Avoid putting extensions of **js** &amp; **css** files, package adds it automatically:

```
@js('js/jquery.js')
```

same as:

```
@js('js/jquery')
```

But as for images, you **should** use file extensions:

```
@img('uploads/cat.jpg')
```

Pass attributes array as second parameter:

```
@css('css/print', ['media' => 'print'])
```

By default package automatically appends last modified timestamp of the file as query string. You can change/disable this behavior in config file or simply pass true/false as third parameter:

```
@js('js/translations', ['charset' => 'utf-8'], false) // disabled timestamp appending
```

When using Laravel's `HTML::image()` you pass `alt` attribute as second param, and other attributes as third. I think that is not good idea. Using `@img` syntax this package provides you can pass all in one array:

```
@img('img/logo.png', ['alt' => 'Alternative text', 'class' => 'brand-logo'])
```

Fourth parameter is for including asset from secure location of your website, e.g. `https://...`. Its `false` by default.

And lastly, please notice that package **doesn't** throw NotFoundException when asset wasn't exist.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4
- Laravel &gt;= 4.0

Installation
------------

[](#installation)

- The **Imgjss** package can be installed via [Composer](http://getcomposer.org) by requiring the `elvendor/imgjss` in your `composer.json` file:

```
{
    "require": {
        "laravel/framework": "4.*",
        "elvendor/imgjss": "0.*"
    },
    "minimum-stability": "dev"
}
```

- Add Service Provider to providers list:

```
'providers' => [
  // ...
  'Elvendor\Imgjss\ImgjssServiceProvider',
],
```

- If you plan to change package defaults, you can also publish config file:

```
php artisan config:publish elvendor/imgjss
```

Roadmap
-------

[](#roadmap)

- Avoid images extensions by looking for a file on given path (probably not a good idea)
- Setting default js, css, img paths
- Ability to use external assets as well
- Cover with tests

Licence
-------

[](#licence)

[Imgjss](https://github.com/elvendor/imgjss) is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Recently: every ~15 days

Total

8

Last Release

4280d ago

PHP version history (2 changes)v0.1PHP &gt;=5.4.0

v0.5PHP &gt;=5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bc1fbdbd12b5eb59c3cbcd649fb2ad0212f2efb85ffbf89e1ce6691c3d2858c?d=identicon)[bayram4ik](/maintainers/bayram4ik)

---

Top Contributors

[![elvendor](https://avatars.githubusercontent.com/u/1143399?v=4)](https://github.com/elvendor "elvendor (21 commits)")

---

Tags

laravelhtmlbladesyntaxassetLaravel 4L4

### Embed Badge

![Health badge](/badges/elvendor-imgjss/health.svg)

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

###  Alternatives

[fitztrev/laravel-html-minify

Minifies the HTML output of Laravel 4 applications

414211.4k](/packages/fitztrev-laravel-html-minify)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[yocmen/html-minify

Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)

1713.7k](/packages/yocmen-html-minify)[ken/blade-minify

Laravel Blade Minify

128.9k1](/packages/ken-blade-minify)[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

137.0k](/packages/latrell-smarty)

PHPackages © 2026

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