GithubHelp home page GithubHelp logo

penale01 / larasupport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from irazasyed/larasupport

0.0 0.0 0.0 51 KB

๐Ÿ“ฆ Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.

Home Page: https://irazasyed.github.io/larasupport

License: MIT License

PHP 100.00%

larasupport's Introduction

Larasupport

Join PHP Chat Chat on Telegram Package for Lumen Latest Version on Packagist Software License Total Downloads

Larasupport Package

Laravel Package Support for Lumen: Makes Lumen compatible with Laravel Packages. You can use any Laravel Packages in Lumen by installing Larasupport Package.

Laravel Packages make use of various global helpers that are not available in Lumen core by default which prevents us from using any Laravel Package in Lumen.

This package adds the missing pieces to make Lumen compatible along with the support for vendor:publish artisan command and other features.

Quick Start

Install

You can add the package directly by firing this command

$ composer require irazasyed/larasupport

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

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

Paths

app_path

Get the fully qualified path to the app directory.

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

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

Artisan

vendor:publish

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

route_parameter

route_parameter($name, $default = null)

Get a given parameter from the route.

Contributing

Thank you for considering contributing to the project. Please read the contributing guide before creating an issue or sending in a pull request.

Code of Conduct

Please read our Code of Conduct before contributing or engaging in discussions.

Security

If you discover a security vulnerability within this project, please email Syed at syed at lukonet.com. All security vulnerabilities will be promptly addressed. You may view our full security policy here.

Additional information

Any issues, please report here

Credits

License

The Laravel framework is open-sourced software licensed under the MIT license. Larasupport consists almost entirely of Laravel source code, so maintains the same license. Please see License File for more information.

FOSSA Status

larasupport's People

Contributors

irazasyed avatar ajmaxwell avatar dcelasun avatar fossabot avatar jalalipm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.