Download the PHP package jumilla/laravel-addomnipot without Composer
On this page you can find all versions of the php package jumilla/laravel-addomnipot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jumilla/laravel-addomnipot
More information about jumilla/laravel-addomnipot
Files in jumilla/laravel-addomnipot
Package laravel-addomnipot
Short Description Addon system for Laravel.
License MIT
Homepage http://jumilla.me
Informations about the package laravel-addomnipot
Laravel Addomnipot
日本語ドキュメント - Japanese
Features
-
Additional add-on features
- It is a package feature in the application. You can use the image to replicate the directory structure of Laravel 5.
- By default, it will be placed under the 'addons' directory.
- You can make one have its own name space (PSR-4) to add-on.
- It can serve as a package of Laravel 5. Valid namespace notation
{addon-name}::
can be used 'lang', 'view'. Also can use 'config'. - Only additional add-on to copy the directory. You do not need to add code to the configuration file, such as 'config/app.php'.
- 9 types of stationery and offers 2 types of sample. Can be generated by artisan command
php artisan make:addon
.
- Solution of a facade problem in the namespace
- A facade can be used in the class with a name space under the app directory. (A backslash and a use declaration, unnecessary)
- A facade can also be handled by the same description method from the inside in add-on name space.
How to install
[A] Download the Laravel stationery project
Note: Pacakge Discovery supported.
It is a way to use a model project already to incorporate the Laravel Extension Pack.
In addition to the Laravel Addomnipot of add-on features, and to the Laravel Versionia of semantic version-based migration feature, you can also use source code generator corresponding to the add-on.
[B] Install the laravel-plus/extension
to an existing project.
Note: Pacakge Discovery supported.
It is a way to use Laravel Extension Pack.
In addition to the Laravel Addomnipot of add-on features, and to the Laravel Versionia of semantic version-based migration feature, you can also use source code generator corresponding to the add-on.
For more information, please refer to the Laravel Extension Pack of the document.
[C] Install the jumilla/laravel-addomnipot
to an existing project.
Note: Pacakge Discovery supported.
It is a way to incorporate the only Laravel Addomnipot of add-on features.
1. Add the package jumilla/laravel-addomnipot
use Composer.
Use composer.
2. Add the service provider.
Edit file config/app.php
.
Check for running
Add-on wiki
is made as a example.
Please confirm the routing setting.
A local server is started and accesses http://localhost:8000/addons/wiki
by a browser.
When a package name is indicated, it's success.
Commands
addon:list
List addons.
When addons
directory file don't exist, it's made.
addon:status
Can check the status of addons.
When addons
directory file don't exist, it's made.
addon:name
A file in the add-on is scanned and the PHP namespace is changed.
When you'd like to confirm the scanned file, please designate -v
option.
addon:remove
An add-on is eliminated.
addons/blog
A directory is just eliminated.
make:addon
An add-on is made.
I add on the next command blog
is generated as PHP name spatial Blog
using a form of library
-type, blog-app
is generated as PHP name spatial BlogApp
using a form of ui
-type.
A skeleton can be chosen from 10 kinds.
- minimum - Minimum structure.
- simple - The simple structure with the directory views and the file Http/route.php.
- asset - Minimum structure.
- library - The composition to which a PHP range and a database are offered.
- api - The structure for Web API.
- ui - The structure for Web UI.
- ui-sample - Example of a Web UI.
- debug - The add-on in which program testing facility is put. Service provider registration of 'debug-bar' is also included.
- generator - Customized for stub files.
- laravel5 - The directory structure of Laravel 5.
- laravel5-auth - The authentication sample included in Laravel 5.
When not designating a form by a command argument, it can be chosen by an interactive mode.
PHP namespace can designate --namespace
by an option.
Please use \\
or /
for a namespace separate.
Helper functions
addon($name = null)
Get the add-on by name.
If omit the name, it returns the add-on that contains the calling class.
This is equivalent to a addon(addon_name())
.
LaravelPlus\Extension\Addons\Addon
object retrieved by the addon()
function, you can access the add-on attributes and resources.
addon_name($class)
Get the add-on name from the class name . The class name must be a fully qualified name that contains the name space. Get the add-on by name.
If you omit the argument, returns the name of the add-on contains the caller of the class.
Facade expansion
Facade of Laravel converts the static method call of class to an instance method invocation, and has been achieved by creating an alias for the facade class in the global namespace.
For Laravel 5 alias loader does not act only in the global name space , to handle the facade from the name space (such as App
) it must put \
to the class name prefix.
Or a use declaration is used.
Laravel Extension has the alias loader which settles a facade in the namespace in the add-on bottom, so a way of Laravel 4.2 formula document mentioning can be used just as it is.
Bootstrap behavior
- Require
files
entry in fileaddons/{addon-name}/addon.json
. - Sees
namespace
entry in fileaddons/{addon-name}/addon.php
and establishes class automatic threading based on PSR-4 agreement to all directories specified asdirectories
.
Author
古川 文生 / Fumio Furukawa ([email protected])
License
MIT
All versions of laravel-addomnipot with dependencies
illuminate/console Version ^5.5
illuminate/container Version ^5.5
illuminate/contracts Version ^5.5
illuminate/events Version ^5.5
illuminate/filesystem Version ^5.5
illuminate/support Version ^5.5
jumilla/laravel-source-generator Version ^1.3