Download the PHP package prod3v3loper/php-auto-autoloader without Composer

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

![Melabuai Logo](https://raw.githubusercontent.com/prod3v3loper/php-auto-autoloader/master/img/icon-MB.png "Melabuai Brand") ![Language](https://img.shields.io/github/languages/top/prod3v3loper/php-auto-autoloader.svg?style=flat "Language") ![Repo Size](https://img.shields.io/github/repo-size/prod3v3loper/php-auto-autoloader.svg?style=flat "Repo size") ![Code SIze](https://img.shields.io/github/languages/code-size/prod3v3loper/php-auto-autoloader.svg?style=flat "Code size") ![Github Release date](https://img.shields.io/github/release/prod3v3loper/php-auto-autoloader.svg?style=flat "Github Release date") ![Packgist PHP Version](https://img.shields.io/packagist/php-v/prod3v3loper/php-auto-autoloader.svg?style=flat "Packgist PHP Version") ![MIT License](https://img.shields.io/github/license/prod3v3loper/php-auto-autoloader.svg?style=flat "MIT License") [![Website](https://img.shields.io/website-up-down-green-red/https/www.tnado.com/open-source-projects-by-prod3v3loper.svg?style=flat "Website")](https://www.tnado.com/open-source-projects-by-prod3v3loper/ "Website") **melabuai** # 🏗 PHP Auto Autoloader With this autoloader, you do not need any more, no matter where you have a master in your root, the autoloader of MB tnado Ai will find it. The classes found can be indexed to retry without searching. # Usage

Instantiate your classes, interfaces, traits or even abstract classes, no matter where. The only thing you have to do is to integrate.

Packagist with Composer

This solution extends the vendor autoloader because it calls the files with certain criteria. The extension allows you to call classes wherever the Autoloader is involved.

Download Composer local or global. Check for more Tutorial - NetBeans with Composer and Packagist for this one.

You found the Autoloader package on Packagist - PHP Auto Autoloader.

Add the Autoloader dependencie to the composer.json and set the autoload.

Now run the composer install command with php

e.g.

This is the vendor autoloader invites our autoloader and now we do not need to specify any more class and can load all our classes.

index.php

Git clone

Get per Git or download and use it.

So we use it without a vendor and can start a direct call.

index.php

# Core Settings & Debug

autoload/core.config.php

Indexing of the found classes, default is true.

Maximum number of lines to read in a file, default is 49.

Set this to false so that you no longer see the debugging, default is true.

Look at which classes where were found, default is true.

# Root

The complete path is the directory path, that the autoloader get by self.

DEFAULT: MBT_DOCUMENT_ROOT

The autoloader define get the web root by self after set MBT_DOCUMENT_ROOT

# Loader methods

The autoloader finds everything yourself you do not have to do anything except write your class and instance and use.

Method  Namespace (with class) Path Load Time
1 testclasses\first_class php-auto-autoloader/testclasses/first_class.php 0.0 sec.
2 testclasses\classes\second_class php-auto-autoloader/testclasses/classes/second.php 0.002 sec.
3 name_space\namespace2\third_class php-auto-autoloader/testclasses/classThree.php  0.011 sec.

METHOD 1:

This is the fastest way

That means we take the website root path and namespace as a folder path and the classname we put together with these.

Example

The instance: new testclasses\first_class();

Type Sample Description
PATH /project/sites/mywebsite/ MBT_DOCUMENT_ROOT
NAMESPACE testclasses Like the folder name
CLASS first_class Like the file name without extension
Then the result example /project/sites/mywebsite/testclasses/first_class.php

METHOD 2:

This method is slightly slower than the first, so 0.03 - 0.05 seconds

This function namespace as folder path and force only this path for class second_class (Example) file. However, this only occurs when the file does not match the specified class name. This means every file found in this folder is opened and searched for the classname. As soon as the used class exists in a file, this is integrated and can use it.

Example

The instance: new testclasses\classes\second_class();

Type Sample Description
PATH /project/sites/website/ MBT_DOCUMENT_ROOT
NAMESPACE testclasses\classes Like the folder name
Then the result example /project/sites/mywebsite/testclasses/classes/second_class.php

METHOD 3:

This method is the slowest, but found class anything where

This method is the slowest, because it scans all your folders. No matter how much files you have, all are opened, read and searched for the classname. This method intervenes only when none of the other methods was successful. So if the namespace was not just a folder name and the class name was not filename.

Example

The instance: new testclasses\classes\third_class();

Type Sample Description
PATH /project/sites/mywebsite/ MBT_DOCUMENT_ROOT
Then the result example /project/sites/mywebsite/testclasses/classThree.php
# Information [tnado SEO & AMP CMS](https://www.tnado.com/), this autoloader is one of parts from Framework. # ISSUE Please use the issue tab to request a: * Bug * Feature Choose template and report a bug or feature you want [issues](https://github.com/prod3v3loper/php-auto-autoloader/issues). # CONTRIBUTE Please read the [contributing](https://github.com/prod3v3loper/php-auto-autoloader/blob/master/.github/CONTRIBUTING.md) to contribute. # VULNERABILITY Please use the Security section for privately reporting a [vulnerability](https://github.com/prod3v3loper/php-auto-autoloader/security). # Authors **Samet Tarim** - *All works* # License [MIT](https://github.com/prod3v3loper/php-auto-autoloader/blob/master/LICENSE) - [prod3v3loper](https://www.prod3v3loper.com/)

All versions of php-auto-autoloader with dependencies

PHP Build Version
Package Version
Requires php Version >=5.1.2
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 prod3v3loper/php-auto-autoloader contains the following files

Loading the files please wait ....