PHPackages                             shafihuzaib/larasupport - 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. [Framework](/categories/framework)
4. /
5. shafihuzaib/larasupport

ActiveLibrary[Framework](/categories/framework)

shafihuzaib/larasupport
=======================

Adds Support to use Laravel Packages in Lumen.

v1.4.0(9y ago)01.1kMITPHP

Since May 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/shafihuzaib/larasupport)[ Packagist](https://packagist.org/packages/shafihuzaib/larasupport)[ RSS](/packages/shafihuzaib-larasupport/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

Larasupport Package
===================

[](#larasupport-package)

[![Package for Lumen](https://camo.githubusercontent.com/4b689c1af4c884c501196b9fa8cddbdeb9607000a8c14a5deb7d9139b9f53692/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b616765253230666f722532302d4c756d656e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/shafihuzaib/larasupport)[![Latest Version](https://camo.githubusercontent.com/ffa843fddc94c1d96c462348798834b5a6364117e0ca71f91c3337e9206304e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736861666968757a6169622f6c617261737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://github.com/shafihuzaib/larasupport/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/dd054fbc6cd0a6a7cc5ddcd515c225c6548fedb73ca8bc58ecc164aa8e94332e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736861666968757a6169622f6c617261737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shafihuzaib/larasupport)

> Laravel Support for Lumen: Adds missing helpers that are not being made to the core of Lumen. Lets you use Laravel Packages in Lumen.
>
> There are some helper functions that are available in core of Laravel framework which are being used in Laravel Packages. Now because of these helpers missing in core of the Lumen, You won't be able to use those amazing Laravel Packages.
>
> I had submited PRs as well as created issue tickets in Lumen to add these helpers to the core but it got rejected with a reason to use Laravel instead. Just for Packages support i didn't want to use full-stack framework. There were few discussions about the same as well. Hence, This package to deal with this issue!

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

#### Install Through Composer

[](#install-through-composer)

You can either add the package directly by firing this command

```
$ composer require shafihuzaib/larasupport:~1.0

```

Or add in the `require` key of `composer.json` file manually

```
"shafihuzaib/larasupport": "~1.0"

```

And Run the Composer update command

```
$ composer update

```

#### Add Service Provider

[](#add-service-provider)

Add this service provider to your `bootstrap/app.php` file.

```
$app->register(Irazasyed\Larasupport\Providers\ArtisanServiceProvider::class);
```

Artisan Service Provider is an optional provider required only if you want `vendor:publish` command working.

And you're done! You can now start installing any Laravel Package out there.

Available Methods
-----------------

[](#available-methods)

> These helpers can be used across your Lumen project, not only with Laravel Packages.

### Paths

[](#paths)

#### public\_path

[](#public_path)

Get the fully qualified path to the `public` directory. You can set env variable `PUBLIC_PATH` and it'll return the same instead of the default `public`.

#### config\_path

[](#config_path)

Get the fully qualified path to the `config` directory (Mostly used with Laravel Packages).

#### database\_path

[](#database_path)

Get the fully qualified path to the `database` directory (Mostly used with Laravel Packages).

#### app\_path

[](#app_path)

Get the fully qualified path to the `app` directory.

### Artisan

[](#artisan)

#### vendor:publish

[](#vendorpublish)

Artisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).

```
php artisan vendor:publish

```

OR

```
php artisan vendor:publish --provider="Vendor\Providers\PackageServiceProvider"

```

### Other

[](#other)

#### route\_parameter

[](#route_parameter)

```
route_parameter($name, $default = null)
```

Get a given parameter from the route.

#### elixir

[](#elixir)

If you're using Laravel Elixir in Lumen, Then this helper function will come handy when you want to include assets from your build directory. By default, it assumes your Elixir's build directory is `build` under public directory (The default is as per the Elixir's default config). If you use a custom build directory, then you can simply set env variable `ELIXIR_BUILD_PATH` with your custom directory path and it'll use the same instead of the default.

```

```

Contributions
-------------

[](#contributions)

PRs are Welcome :)

Additional information
----------------------

[](#additional-information)

Any issues, please [report here](https://github.com/irazasyed/larasupport/issues).

The methods have been ported from the core of Laravel framework and modified to fit the requirements.

License
-------

[](#license)

[MIT](LICENSE) © [Syed Irfaq R.](http://lk.gd/irazasyed)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~99 days

Recently: every ~124 days

Total

6

Last Release

3557d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9165135?v=4)[shafihuzaib](/maintainers/shafihuzaib)[@shafihuzaib](https://github.com/shafihuzaib)

---

Top Contributors

[![irazasyed](https://avatars.githubusercontent.com/u/1915268?v=4)](https://github.com/irazasyed "irazasyed (19 commits)")[![shafihuzaib](https://avatars.githubusercontent.com/u/9165135?v=4)](https://github.com/shafihuzaib "shafihuzaib (5 commits)")[![dcelasun](https://avatars.githubusercontent.com/u/144373?v=4)](https://github.com/dcelasun "dcelasun (1 commits)")

---

Tags

laravellaravel-packageslaravel lumen supportlumen packageslumen support

### Embed Badge

![Health badge](/badges/shafihuzaib-larasupport/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[irazasyed/larasupport

Adds Laravel Package Support in Lumen.

127691.9k4](/packages/irazasyed-larasupport)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[laravel/vapor-cli

The Laravel Vapor CLI

31411.4M8](/packages/laravel-vapor-cli)[laravel-zero/framework

The Laravel Zero Framework.

3491.5M419](/packages/laravel-zero-framework)

PHPackages © 2026

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