PHP code example of mxrvx / autoloader
1. Go to this page and download the library: Download mxrvx/autoloader library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mxrvx / autoloader example snippets
$packages = \MXRVX\Autoloader\App::packageManager()->getPackages();
var_export($packages);
\MXRVX\Autoloader\Composer\Package\Packages::__set_state(array(
'packages' =>
array (
'psr/container' =>
\MXRVX\Autoloader\Composer\Package\Package::__set_state(array(
'namespace' => 'psr-container',
'name' => 'psr/container',
'version' => '2.0.2',
' 'name' => 'symfony/console',
'version' => 'v5.4.47',
'(
'dependencies' =>
array (
'symfony/deprecation-contracts' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/deprecation-contracts',
'version' => '^2.1|^3',
)),
'symfony/polyfill-mbstring' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-mbstring',
'version' => '~1.0',
)),
'symfony/polyfill-php73' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-php73',
'version' => '^1.9',
)),
'symfony/polyfill-php80' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-php80',
'version' => '^1.16',
)),
'symfony/service-contracts' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/service-contracts',
'version' => '^1.1|^2|^3',
)),
'psr/container' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'psr/container',
'version' => '^1.1|^2.0',
)),
'symfony/string' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/string',
'version' => '^5.1|^6.0',
)),
'symfony/polyfill-ctype' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-ctype',
'version' => '~1.8',
)),
'symfony/polyfill-intl-grapheme' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-intl-grapheme',
'version' => '~1.0',
)),
'symfony/polyfill-intl-normalizer' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-intl-normalizer',
'version' => '~1.0',
)),
),
)),
)),
'mxrvx/autoloader' =>
\MXRVX\Autoloader\Composer\Package\Package::__set_state(array(
'namespace' => 'mxrvx-autoloader',
'name' => 'mxrvx/autoloader',
'version' => 'dev-main',
'name' => 'symfony/polyfill-intl-normalizer',
'version' => '~1.0',
)),
),
)),
)),
),
))
}
$packages = \MXRVX\Autoloader\App::packageManager()->getPackageDependencies('mxrvx/autoloader', $onlyBine = false);
var_export($dependencies);
array (
'mxrvx/schema-system-settings' =>
\MXRVX\Autoloader\Composer\Package\Package::__set_state(array(
'namespace' => 'mxrvx-schema-system-settings',
'name' => 'mxrvx/schema-system-settings',
'version' => 'v1.0.2',
'rray(
'namespace' => 'symfony-console',
'name' => 'symfony/console',
'version' => 'v5.4.47',
'mfony/deprecation-contracts' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/deprecation-contracts',
'version' => '^2.1|^3',
)),
'symfony/polyfill-mbstring' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-mbstring',
'version' => '~1.0',
)),
'symfony/polyfill-php73' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-php73',
'version' => '^1.9',
)),
'symfony/polyfill-php80' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-php80',
'version' => '^1.16',
)),
'symfony/service-contracts' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/service-contracts',
'version' => '^1.1|^2|^3',
)),
'psr/container' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'psr/container',
'version' => '^1.1|^2.0',
)),
'symfony/string' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/string',
'version' => '^5.1|^6.0',
)),
'symfony/polyfill-ctype' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-ctype',
'version' => '~1.8',
)),
'symfony/polyfill-intl-grapheme' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-intl-grapheme',
'version' => '~1.0',
)),
'symfony/polyfill-intl-normalizer' =>
\MXRVX\Autoloader\Composer\Package\Dependency::__set_state(array(
'name' => 'symfony/polyfill-intl-normalizer',
'version' => '~1.0',
)),
),
)),
)),
'symfony/deprecation-contracts' =>
\MXRVX\Autoloader\Composer\Package\Package::__set_state(array(
'namespace' => 'symfony-deprecation-contracts',
'name' => 'symfony/deprecation-contracts',
'version' => 'v3.5.1',
' => 'psr/container',
'version' => '2.0.2',
'=> 'symfony/polyfill-intl-normalizer',
'version' => 'v1.32.0',
'