Download the PHP package gianfriaur/package-loader without Composer

On this page you can find all versions of the php package gianfriaur/package-loader. 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 package-loader

PackageLoader

just another package manager for laravel nothing more and nothing less

but if you want to use it you are welcome

Goal

In an ideal world we will all be the standard,

But it's also true that if there were a standard, our project wouldn't be the only one, wouldn't it?

Starting from this we can say that it is not always possible to make things according to the existing standard, or simply for the 'company' logic this is not possible

The purpose of this library is to provide a tool without forcing you to necessarily follow the rules decided at the start, if you want you can write your own logic if necessary and expect that nothing will 'break'

Also, because you can't think about what you need before you need it 😉

Install

Require package

composer require gianfriaur/package-loader

Publish configuration file

php artisan vendor:publish --provider="Gianfriaur\PackageLoader\PackageLoaderServiceProvider"

First setup

Tips

Documentation

You can find the full documentation at this location

Stress Tests 😍

I have tried to reduce loading times to reasonably low times

obtaining good results

you can find the stress test in this test: tests/Stress/StressTest.php

Why use LocalizationStrategy

Since PackageProvider extends ServiceProvider we can wonder why it has been given the possibility to use a strategy specifically to load translations instead of using directly $this->loadTranslationsFrom($path,$namespace);

There is a very simple answer to this legitimate question, if for each PackageProvider it is necessary to individually register a callback to the afterResolving and check if the 'translator' service has been resolved and then load the translations, this as the packages increase can cause a drop in performance.

Yes it is true of just ~50 milliseconds for 100 packets

With the DefaultLocalizationStrategy Service this is done only once leaving only the time to read the files

But hey, there is, using it costs you nothing, but you save some time in requests

In the future there will be a command that will be loaded by the strategy that will allow you in production to collapse all the translation files of all the packages into a single one so that I could further reduce the times for loading all the translation files

Next releases


All versions of package-loader with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-pdo Version *
laravel/framework Version v10.*
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 gianfriaur/package-loader contains the following files

Loading the files please wait ....