PHPackages                             nerweb/laravel-shortcode - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nerweb/laravel-shortcode

Abandoned → [pingpong/shortcode](/?search=pingpong%2Fshortcode)Library[Utility &amp; Helpers](/categories/utility)

nerweb/laravel-shortcode
========================

Simple Laravel Shortcode

v0.2.0(11y ago)869MITPHPPHP &gt;=5.3.0

Since Nov 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/reillo/laravel-shortcode)[ Packagist](https://packagist.org/packages/nerweb/laravel-shortcode)[ RSS](/packages/nerweb-laravel-shortcode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

laravel-shortcode (abandoned)
=============================

[](#laravel-shortcode-abandoned)

use pingpong/shortcode instead.

Really Simple Laravel Shortcode

---

Installation
============

[](#installation)

Add the following to your `composer.json` file:

```
"nerweb/laravel-shortcode": "dev-master"
```

Then, run `composer update nerweb/laravel-shortcode` or `composer install` if you have not already installed packages.

Add the below line to the providers array in app/config/app.php configuration file (add at the end):

```
'Nerweb\Shortcode\ShortcodeServiceProvider',
```

Add the below line to the aliases array in app/config/app.php configuration file (add at the end):

```
'Shortcode' => 'Nerweb\Shortcode\Facades\Shortcode',
```

Usage
=====

[](#usage)

```
$string = '
Hi [FIRST_NAME] [LAST_NAME],

To confirm your account.

please click [confirm_url title="Confirm example" text="here"]

or

[CONFIRM_URL_TEXT]

Thanks,
[FROM_NAME]
';

Shortcode::register('FROM_NAME', 'Lisa Dy');

Shortcode::register('confirm_url', function($parameters = array(), $Shortcode) {
    // short code available parameters
    $href           = array_get($parameters, 'href');
    $title          = array_get($parameters, 'title');
    $text           = array_get($parameters, 'text');

    // link
    return link_to($Shortcode->get('CONFIRM_URL_TXT'), $text, array(
        'title' => $title
    ));
});

// Register on decode
echo Shortcode::decode($string, array(
    'FIRST_NAME'        => 'Hamill',
    'LAST_NAME'         => 'Esmeralda',
    'CONFIRM_URL_TEXT'  => URL::to('/account/confirm/?something=here')
));
```

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

4208d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/453ffca7f2ab93c7b23f8c8d240165c1bc315c1b4297e407fa06ee9c4fe72f04?d=identicon)[reillo](/maintainers/reillo)

---

Top Contributors

[![reillo](https://avatars.githubusercontent.com/u/6128004?v=4)](https://github.com/reillo "reillo (11 commits)")

---

Tags

laravelshortcode

### Embed Badge

![Health badge](/badges/nerweb-laravel-shortcode/health.svg)

```
[![Health](https://phpackages.com/badges/nerweb-laravel-shortcode/health.svg)](https://phpackages.com/packages/nerweb-laravel-shortcode)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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