Download the PHP package jackiedo/workbench without Composer
On this page you can find all versions of the php package jackiedo/workbench. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jackiedo/workbench
More information about jackiedo/workbench
Files in jackiedo/workbench
Package workbench
Short Description Bring workbench back to Laravel 5+ and later.
License MIT
Informations about the package workbench
As of July 1 2020, Laravel Workbench is no longer maintained.
It will still exist as an archive, but it will not be taken care of, resolve issues and no new releases will be released in the future.
Because the versions of the package have been fragmented, at the same time its features are no longer useful and suitable for modern Laravel versions, I decided to stop developing for it. Instead, I built another more efficient package called Laravel Packager and put energy into it.
— Jackie Do
Laravel Workbench
Laravel Workbench (originally from Laravel 4.x, has now stopped growing) support our in building perfect structured packages for Laravel without spending a lot of time.
This package was created to bring Laravel Workbench back to Laravel 5+ and higher. Let this package support you in every detail through it's powerful features.
Features
- Build directory structure for package.
- Generate a standard composer.json file for package.
- Generate a standard Service Provider file for package.
- Generate some scaffold resources file, such as:
- Facade files
- Interface files
- Abstract files
- Exception files
- Controller files
- Middleware files
- Model files
- Artisan CLI files
- Configuration file
- Migration files
- Language files
- View files
- Route file
- Helper file
- ...
- Autoload dumping to be able to use your package immediately (by adding Service Provider of your package into
providers
section inconfig/app.php
file or using discovery package feature throughextra/laravel
section incomposer.json
file).
Overview
Look at one of the following topics to learn more about Laravel Workbench
- Versions and compatibility
- Installation
- Usage
- Screenshot
- Configuration
- Other documentation
Versions and compatibility
Each branch of Laravel Workbench is similarities with each version of Laravel 5+. Currently, this package supports the following versions of Laravel:
Branch | Laravel version |
---|---|
5.0 | 5.0 |
5.1 | 5.1 |
5.2 | 5.2 |
5.3 | 5.3 |
5.4 | 5.4 |
5.5 | 5.5 |
5.6 | 5.6 |
In each branch we have multiple versions, tagged syntax as 5.0.*
, 5.1.*
, 5.2.*
...
Installation
Step 1 - Install this package through Composer.
Run the composer require
command from the terminal on your project source:
Note: The
{{laravel-version}}.*
string above is main version of Laravel that you want to install Laravel Workbench on it. Example, if you want to install this package on Laravel 5.6, you have to set require isjackiedo/workbench:5.6.*
Step 2 - Add mechanism to autoload service provider (for Laravel 5.4 or earlier only).
Open config/app.php
file, and add a new item to the providers array:
Note: If we are using Laravel version 5.5 or later, with the feature
Discovery Packages
, we can skip above step.
Step 3 - Publish the configuration file.
From the terminal on your project source, run the command as follow:
Note: You should use
--force
option in publish command to override configuration file with newest one.
Step 4 - Register the workbench package loaders.
Open the bootstrap/app.php
file at the root of Laravel project and put this following code at the very top of script (after the PHP open tag):
Step 5 - Add mechanism to auto discover workbench packages (for Laravel 5.5 or later only).
In this final step, if we are using Laravel version 5.5 or later, we should to add the feature Auto Discover Workbench Packages
into post-autoload-dump
section in composer.json
file of our Laravel project.
Open composer.json
file, and add the line @php artisan workbench:discover
after the line @php artisan package:discover
as follow:
Note: If we are using Laravel version 5.4 or earlier, we do not perform the above step.
Usage
Now, you can use workbench commands to create your packages same as on Laravel 4.2.
Note: Before you create a package, you should to update
name
andconfig/workbench.php
file.
Creating a basic package.
Syntax:
Note: The
vendor/name
string above is the form of your package name. Example:jackiedo/demo-package
Creating a package with generating some scaffold resources.
Syntax:
Dump autoloader for all workbench packages
During the process of building your package, every time you generate a new class, file or change the composer.json
file of package, you should rebuild the autoloader for the package through the following command:
Manual discover workbench packages
During the process of building your package, every time you change the extra/laravel
section in composer.json
file of your package, you should rebuild cached through the following command:
Or you can use the composer dump-autoload
command, because we add above command into post-autoload-dump
section in composer.json
file of Laravel project during the installation process.
Delete an existing workbench package
Syntax:
Screenshot
Create package without generating scaffold resources.
Create package with generating scaffold resources.
Create package with generating scaffold resources and point PSR-4 autoloading namespace to the src directory.
Configuration
All details are provided in your config/workbench.php
as comments (you have to run Artisan vendor:publish command before). Please read carefully before use.
Other documentation
For more documentation about package development, you can visit Official Laravel Documentation pages:
All versions of workbench with dependencies
illuminate/filesystem Version ~5.6
illuminate/support Version ~5.6
symfony/finder Version 4.*