Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 15, 2018. It is now read-only.
/ php-autoloader Public archive

Script for generating universal autoloader (based on the map of classes in your project)

License

Notifications You must be signed in to change notification settings

flowmitry/php-autoloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

60 Commits

Repository files navigation

PHP CLASS MAP AUTOLOADER [en]

Script for generating autoloader based on the map of classes in your project. Support namespace, trait.

REQUIREMENTS

PHP >= 5.3

USAGE

Just download autoload.phar and run next command in terminal:

php autoload.phar --file=/path/to/file_for_autoload.php --dir=/path/to/dir/where/php/files

Script will create file "/path/to/file_for_autoload.php" with autoloader. Just include this in your project:

<?php
include '/path/to/file_for_autoload.php';

By default, script will generate relative paths. If you need absolute paths - use next command:

php autoload.phar --file=/path/to/file_for_autoload.php --dir=/path/to/dir/where/php/file --absolute-path

PHP CLASS MAP AUTOLOADER [ru]

Скрипт для генерации автозагрузчика на основании карты классов вашего проекта. Поддерживает неймспейсы и трейты.

ТРЕБУЕТСЯ

PHP >= 5.3

КАК ПОЛЬЗОВАТЬСЯ

Скачайте autoload.phar и выполните команду в консоли:

php autoload.phar --file=/path/to/file_for_autoload.php --dir=/path/to/dir/where/php/file

Скрипт создаст файл "/path/to/file_for_autoload.php" (если это возможно) с автозагрузчиком. Просто подключите его в вашем проекте:

<?php
include '/path/to/file_for_autoload.php';

По-умолчанию, скрипт записывает относительные пути. Если вам нужно, чтобы были сгенерированы абсолютные пути - используйте команду:

php autoload.phar --file=/path/to/file_for_autoload.php --dir=/path/to/dir/where/php/file --absolute-path

About

Script for generating universal autoloader (based on the map of classes in your project)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /