Download the PHP package ifo/laravel-make-packager without Composer

On this page you can find all versions of the php package ifo/laravel-make-packager. 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-make-packager

= How to Setup MakePackager Package in Your Laravel Project

This package is a CLI tool that helps you build a fully structured package for a Laravel application without spending a lot of time. You no longer need to struggle with initializing the skeleton for your package. Instead, focus on writing the source code while Laravel Packager organizes the package structure for you.

== Step 0: Pre-Installation Setup

Before installing, please add the necessary file to your root project. You can find the file and instructions at the following link:

link:https://github.com/Mmaheshbabu123/make-packager-custom-route-provider/blob/main/README.md[Custom Route Provider Setup]

== Step 1: Install the Package

Run the following command to install the package:

[source,bash]

composer require ifo/laravel-make-packager

== Step 2: Dump Autoload

After installing the package, run the following command to autoload the package:

[source,bash]

composer dump-autoload

The package has been successfully installed.

= How to Create a Custom Package

== Step 1: Create a New Package

Run the following command to create a new package:

[source,bash]

php artisan package:make YourPackageName

This command will create the folder structure and necessary files for your package, including routes, ServiceProvider, and an AbstractController for enforcing rules and validations.

You can refer to the screenshot below:

image::https://github.com/Mmaheshbabu123/MakePackager/assets/29708637/f12f0829-9023-4a55-bfaf-4025d59bde64[alt=Package Structure]

== Folder Structure

Here’s what the folder structure will look like:

[source]

--> packageName --> composer.json --> module.json --> src --> Config --> Console --> Database --> Events --> Http --> Controllers --> AbstractController // For rules and validations, extends in controllers --> PackageNameController --> Middleware --> Requests --> Jobs --> Listeners --> Models --> Providers --> ModuleServiceProvider --> RouteServiceProvider --> Resources --> routes --> V1.php --> web.php --> Test -->Unit -->Feature

== Step 2: Register the Package

To register the package, follow the setup steps below:

=== Step 1: Create Package Directory

Create a packages folder and move the MakePackager directory inside it.

=== Step 2: Update Composer Autoload

Add the package namespace to the composer.json file under the psr-4 key:

[source,json]

"autoload": { "psr-4": { "Packages\MakePackager\": "packages/MakePackager/src" } }

=== Step 3: Register the Service Provider

[source,php]

'providers' => [ Packages\MakePackager\Providers\MakePackagerServiceProvider::class, ]

[source,php]

public function register(): void { $this->app->register(CustomPackageServiceProvider::class); }

=== Step 4: Initial Setup Completion

Run the following commands to complete the setup:

[source,bash]

composer dump-autoload php artisan config:cache php artisan config:clear

== Adding Middleware

If you want to automatically apply middleware authentication, add the CustomRouteServiceProvider. This will ensure that the middleware is added by default.

If you prefer not to use the custom middleware setup, you can remove the extension of CustomRouteServiceProvider and instead extend ServiceProvider directly.

= MakePackager Artisan Commands

Here are a few custom artisan commands to create specific packages:

[source,bash]

php artisan package:make-job YourFileName YourPackageName

to create jobs for a specific package

[source,bash]

php artisan package:make-migration YourFileName YourPackageName

to create migration files for a specific package [source,bash]

php artisan package:make-listener YourFileName YourPackageName

to create listeners for a specific package [source,bash]

php artisan package:make-event YourFileName YourPackageName

to create events for a specific package [source,bash]

sudo php artisan package:make-test SamleTest Myo --feature

This command creates a test file in a specific package.

This package has an additional feature: it will automatically register the test and unit scripts in the root project's phpunit.xml file, allowing them to be executed smoothly.

More artisan commands will be added in future updates.


All versions of laravel-make-packager with dependencies

PHP Build Version
Package Version
No informations.
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 ifo/laravel-make-packager contains the following files

Loading the files please wait ....