pkg-support | Support classes for creating laravel packages
kandi X-RAY | pkg-support Summary
kandi X-RAY | pkg-support Summary
pkg-support is a PHP library. pkg-support has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
Support classes for creating laravel packages
Support classes for creating laravel packages
Support
Quality
Security
License
Reuse
Support
pkg-support has a low active ecosystem.
It has 1 star(s) with 0 fork(s). There are 1 watchers for this library.
It had no major release in the last 6 months.
pkg-support has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of pkg-support is current.
Quality
pkg-support has no bugs reported.
Security
pkg-support has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
pkg-support does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
pkg-support releases are not available. You will need to build from source code and install.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pkg-support
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pkg-support
pkg-support Key Features
No Key Features are available at this moment for pkg-support.
pkg-support Examples and Code Snippets
No Code Snippets are available at this moment for pkg-support.
Community Discussions
No Community Discussions are available at this moment for pkg-support.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pkg-support
Add in the target package composer.json. Let the main package class implements the Spescina\PkgSupport\PackageInterface. In the same class import the Spescina\PkgSupport\PkgTrait trait. Now the constructor has to respect the interface definition. Then you should take care of these dependencies when instantiating the object, usually in the package service provider. This constructor force the creation of a config and a lang object keeping the registration key for your package. With them, it will be possible to use Laravel Config and Lang facades from the package classes without having to specify the package prefix every time. Assuming your class has a facade, you can now make these calls.
MyPackage::conf() equal to Config::get('mypackage::mypackage')
MyPackage::conf('key') equal to Config::get('mypackage::mypackage.key')
MyPackage::conf('key', 'section') equal to Config::get('mypackage::section.key')
MyPackage::lang('key') equal to Lang::get('mypackage::mypackage.key')
MyPackage::lang('key', 'section') equal to Lang::get('mypackage::section.key')
MyPackage::conf() equal to Config::get('mypackage::mypackage')
MyPackage::conf('key') equal to Config::get('mypackage::mypackage.key')
MyPackage::conf('key', 'section') equal to Config::get('mypackage::section.key')
MyPackage::lang('key') equal to Lang::get('mypackage::mypackage.key')
MyPackage::lang('key', 'section') equal to Lang::get('mypackage::section.key')
Support
Support config and language classes for creating laravel packages.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page