PHP Classes

Laravel Package Development Skeleton: Create Laravel packages from a skeleton

Recommend this page to a friend!
  Info   View files Documentation   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 58 All time: 10,425 This week: 171Up
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: 3993
Week rank: 398 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  
  • dir-structure.png
  Files folder image Files  
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  /  config  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script

  Files folder image Files  /  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  /  src  /  routes  
File Role Description
  Accessible without login Plain text file routes.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:58
This week:0
All time:10,425
This week:171Up