PHPackages                             leuverink/scalpel - 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. leuverink/scalpel

ActiveLibrary

leuverink/scalpel
=================

This package adds extra directives to the Blade templating engine

v1.0.1(8y ago)152MITPHPPHP &gt;=5.6.4

Since Jun 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gwleuverink/scalpel)[ Packagist](https://packagist.org/packages/leuverink/scalpel)[ RSS](/packages/leuverink-scalpel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

Scalpel
=======

[](#scalpel)

[![Latest Stable Version](https://camo.githubusercontent.com/ff26f7b1170441bc416c57804931a2dcd4d5d60e185e17c709d7af054955b551/68747470733a2f2f706f7365722e707567782e6f72672f6c6575766572696e6b2f7363616c70656c2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/leuverink/scalpel)[![Latest Unstable Version](https://camo.githubusercontent.com/a673fa5ea667f0ed3c5a9daa858d4794e8d9597c577f015dd8c63124d57837e0/68747470733a2f2f706f7365722e707567782e6f72672f6c6575766572696e6b2f7363616c70656c2f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/leuverink/scalpel)[![StyleCI Build Status](https://camo.githubusercontent.com/8e61399b0ecb52ee0f2b656ed012f5ecc283edc1765599738725e5e3c2c12df4/68747470733a2f2f7374796c6563692e696f2f7265706f732f39343535383435302f736869656c64)](https://styleci.io/repos/94558450)[![License](https://camo.githubusercontent.com/50af86781865080346a3fa5f5b474149e931a2e2b3523658423d74fbdd794380/68747470733a2f2f706f7365722e707567782e6f72672f6c6575766572696e6b2f7363616c70656c2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/leuverink/scalpel)

Scalpel is a composer package that adds extra directives to the Blade templating engine. *I do not recommend using this in production as I created this for personal use and I am not providing support of any kind. The package is provided as-is and you are free to do with it as you like, fork it, submit PR's e.t.c.*

If you'd like to see added features you can submit a PR.

Extra directives
----------------

[](#extra-directives)

DirectiveDescription@mix(resource)Prints either a script or link html tag based on the file extension@selectedif(expression)Print 'selected' if the expression is true@checkedif(expression)Print 'checked' if the expression is trueIntallation
-----------

[](#intallation)

**1. Add Scalpel to you project.**

```
composer require leuverink/scalpel

```

**2. Add the service provider to the providers array in config/app.php.**

\* *Skip this step if you are on Laravel 5.5 or up.*

```
Leuverink\Scalpel\ScalpelServiceProvider::class,

```

**3. Before you can use the additional Blade directives you have to clear all compiled views.**

```
php artisan view:clear

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9531bf1fdbe178d3a5129b81e61b70be81359ebf10ce3f282705a8275b4bd31d?d=identicon)[gwleuverink](/maintainers/gwleuverink)

---

Tags

blade-template-enginecomposer-packagelaravellaravel-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leuverink-scalpel/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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