Download the PHP package ipunkt/laravel-package-manager without Composer

On this page you can find all versions of the php package ipunkt/laravel-package-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-package-manager

Package Manager

Total Downloads Latest Stable Version Latest Unstable Version License

Introduction

Package Manager helps reducing the package creation time. Therefore it supports some basic providers for laravel packages.

This package plays nicely with the laravel plugin seeder package.

Just create a new plugin with composer create-package ipunkt/laravel-package YOUR-PACKAGE-NAME and you are able to start with all the package manager supports out of the box.

Installation

Add this package as dependency by using composer require ipunkt/laravel-package-manager:^1.0

Usage

We suggest using a Package Service Provider extending the Illuminate\Support\AggregateServiceProvider and register all your package related providers as attribute like so:

And in your composer.json simply auto-register only your aggregate service provider like so:

Base Service Providers included

We include various service providers for the most common package needs. So you can simply use / extend them and at it to your package service provider.

Package Configuration

If you want to register package configuration you have to extend the ConfigurationServiceProvider.

First of all, please add a protected $packagePath to your extended service provider class and give it a value for the package root folder like so: protected $packagePath = __DIR__ . '/../../';. This is necessary to mark your files relative to the package root.

You have to add your configuration files in attribute $configurationFiles. File by file as array item. If you want to give an alias for config you have to set is array key. For example:

Within your package you have a config/config.php and you want to have it published and merged as my-package you have to set it like so

'my-package' => 'config/config.php'

Then you can get config values by using config('my-package.).

Routes

For providing routes you have to extend the RouteServiceProvider.

First of all, please add a protected $packagePath to your extended service provider class and give it a value for the package root folder like so: protected $packagePath = __DIR__ . '/../../';. This is necessary to mark your files relative to the package root.

Just set $routesNamespace, $routesMiddleware and $routesFile to your needs and you are ready to go. For registering various routes you should have one provider for each type of routes file (api, web, ...).

Views / Templates

We provide the ViewServiceProvider for extension.

First of all, please add a protected $packagePath to your extended service provider class and give it a value for the package root folder like so: protected $packagePath = __DIR__ . '/../../';. This is necessary to mark your files relative to the package root.

You have to set the $namespace to your package based identifier. The $templatesFolder is set to the resources/views by default, you can override it.

Database Migrations

We provide the MigrationServiceProvider to provide database migration files from package.

First of all, please add a protected $packagePath to your extended service provider class and give it a value for the package root folder like so: protected $packagePath = __DIR__ . '/../../';. This is necessary to mark your files relative to the package root.

You have to set the $migrationsFolder to your package migrations.

Translations

We provide the TranslationServiceProvider for extension.

First of all, please add a protected $packagePath to your extended service provider class and give it a value for the package root folder like so: protected $packagePath = __DIR__ . '/../../';. This is necessary to mark your files relative to the package root.

You have to set the $namespace to your package based identifier. The $translationsFolder is set to the resources/lang by default, you can override it.

For the new implemented way for json files we also support the $useJson flag. When true the given files have to be json format.

Artisan Commands

For registering artisan console command we provide the ArtisanServiceProvider.

You have to fill the $commands array with your commands. If you provide a key this key will be the key for registration within the IoC container of laravel. The value should be the command class name like SuperCommand::class or a string e.g. SuperCommand which gets resolved to lookup a method registerSuperCommand within the service provider (protected at least to get called). So you can register more complex commands by using a separate method.

By default artisan commands will registered only on console runs. If you want to change that behaviour you can overwrite the value of $registerOnlyForConsole to make that happen.

Aliases

We provide an AliasServiceProvider to register all aliases by hand. But you should provide aliases by the new package discovery:

Common Resolutions

Namespace for views, config, translations, ...

Your aggregated package provider should provide a constant namespace identifier for your package. So you can re-use the same value in all your single package providers consistently.

License

Package Manager is open-sourced software licensed under the MIT license


All versions of laravel-package-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
illuminate/support Version *
illuminate/routing Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ipunkt/laravel-package-manager contains the following files

Loading the files please wait ....