PHP Classes

Laravel Package Development Skeleton: Create Laravel packages from a skeleton

Recommend this page to a friend!
  Info   Documentation   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 59 All time: 10,513 This week: 455Up
Version License PHP version Categories
laravel-package-skel 1.0.0MIT/X Consortium ...5PHP 5, Libraries, Code Generation
Description 

Author

This package can be used to create Laravel packages from a skeleton.

It can load a configuration script to define the details of the package skeleton.

The package provides a service provider class that loads any migrations and routes that may be necessary and calls a facade class to create the Laravel package.

Developers can add this package in their composer.json file.

Innovation Award
PHP Programming Innovation award nominee
March 2022
Number 8
Laravel is a well-known PHP framework with a large ecosystem of PHP developers writing components to extend its core capabilities.

This package can help developers create a new Laravel package with less effort by providing a base skeleton to allow them to get started quickly.

Manuel Lemos
Picture of Dipesh Sukhia
Name: Dipesh Sukhia <contact>
Classes: 4 packages by
Country: ???
Age: ???
All time rank: 3938
Week rank: 197 Up
Innovation award
Innovation award
Nominee: 2x

Documentation

Laravel Package Skeleton

Packages are used to add new functionality in laravel.

How to create a laravel Package?

Create Package directory

mkdir Package

Create directory structure for package

plot

Installation

In project composer.json add

 "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/",
            "VendorName\\LaravelPackageSkeleton\\": "Package/laravel-package-skeleton/src"
        }
    },

config/app.php add in to 'providers' array

VendorName\LaravelPackageSkeleton\LaravelPackageSkeletonServiceProvider::class,

Usage

// Usage description here

use facade

LaravelPackageSkeletonFacade::getFacadeAccessor();

Credits


Screenshots (1)  
  • dir-structure.png
  Files folder image Files (9)  
File Role Description
Files folder imageconfig (1 file)
Files folder imagesrc (3 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (9)  /  config  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script

  Files folder image Files (9)  /  src  
File Role Description
Files folder imageroutes (1 file)
  Plain text file LaravelPackageSkeleton.php Class Class source
  Plain text file LaravelPackageSkeletonFacade.php Class Class source
  Plain text file LaravelPackageSkel...ServiceProvider.php Class Class source

  Files folder image Files (9)  /  src  /  routes  
File Role Description
  Accessible without login Plain text file routes.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:59
This week:0
All time:10,513
This week:455Up