2017 © Pedro Pelรกez
 

library laravel-package-cli

A small CLI to scaffold packages for Laravel framework

image

aheenam/laravel-package-cli

A small CLI to scaffold packages for Laravel framework

  • Monday, June 18, 2018
  • by rathesDot
  • Repository
  • 1 Watchers
  • 22 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 57 % Grown

The README.md

Laravel Package CLI

This project delivers a simple set of Console Commands to generate a directory structure for laravel package development., (*1)

For example simply create the complete directory structure for a new package by calling laravel-package generate vendor/package-name, (*2)

Installation

Install this command as a global composer package, (*3)

$ composer global require aheenam/laravel-package-cli

Usage

You can then create a new repository by calling the following command:, (*4)

$ laravel-package generate vendor/package-name

This command will create a directory named package-name and will setup a basic setup for creating a Laravel package., (*5)

The directory structure will look like following:, (*6)

โ”œโ”€โ”€ database/
โ”‚   โ”œโ”€โ”€ .gitkeep
โ”œโ”€โ”€ config/
โ”‚   โ”œโ”€โ”€ package-name.php
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ PackageNameServiceProvider.php
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ TestCase.php
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ CHANGELOG.md
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ phpunit.xml
โ”œโ”€โ”€ README.md

All the files and classes will have set the correct names and namespaces, but remember that the generator is just creating a starting point. You should go through the files and add stuff that is missing., (*7)

Pass a custom path

You can also pass an second argument specifying the path where the packages should be generated., (*8)

$ laravel-package generate vendor/package-name packages/aheenam/

Above example would generate the package at ./packages/aheenam/packages-name. This can be handy if you want to use this generator within an existing Laravel project., (*9)

The --force option

By default you will get an error notice if a directory with given package name already exists. You can ignore existing directories by using the --force flag:, (*10)

$ laravel-package generate vendor/package-name --force

Install composer dependecies

Using the --install flag, you can enforce that, after the generation of the package is done, the command changes into the new directory and runs composer install to install the dependecies., (*11)

Generate a LICENSE

You can pass an option to not only create an empty LICENSE file, but also populate it with the appropriate LICENSE content., (*12)

$ laravel-package generate vendor/package-name --license=MIT

Currently there are 3 LICENSE types implemented: MIT, Apache 2.0 and GNU GPL v3. Just pass the names and you should get your LICENSE generated., (*13)

Changelog

Check CHANGELOG for the changelog, (*14)

Testing

To run tests use, (*15)

$ composer test

If you are working on a windows machine use, (*16)

vendor\bin\phpunit

Contributing

Information will follow soon, (*17)

Security

If you discover any security related issues, please email rathes@aheenam.com or use the issue tracker of GitHub., (*18)

About

Aheenam is a small company from NRW, Germany creating custom digital solutions. Visit our website to find out more about us., (*19)

License

The MIT License (MIT). Please see License File for more information., (*20)

The Versions

18/06 2018

dev-master

9999999-dev

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

10/04 2018

dev-feature/run-composer

dev-feature/run-composer

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

10/04 2018

dev-bugfixes/paths

dev-bugfixes/paths

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

19/02 2018

1.2.1

1.2.1.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

11/02 2018

1.2.0

1.2.0.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

04/01 2018

dev-analysis-Xk6AGR

dev-analysis-Xk6AGR

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

29/12 2017

1.1.0

1.1.0.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

11/11 2017

1.0.4

1.0.4.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

06/11 2017

1.0.3

1.0.3.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

31/10 2017

1.0.1

1.0.1.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan

31/10 2017

1.0.0

1.0.0.0

A small CLI to scaffold packages for Laravel framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rathes Sachchithananthan