It’s super quick to get a PHP-Prefixer project up and running. Install any library freely. PHP-Prefixer will manage your namespaces.
- Use the same libraries across all platforms: Develop your solutions using the same libraries for all the platforms you work in, specifically WordPress, Joomla, Drupal, Laravel, Symfony, Slim Framework, etc.
- Composer + WordPress: Use Composer for your WordPress projects. PHP-Prefixer will process the dependencies to run smoothly along with other third-party plug-ins.
- Fully integrated with Git: Declare your name space configuration and let the service produce the packages. No local installation. No Phars. No new dependencies.
This is the source project to be prefixed.
The prefixed results can be found in this repository: https://github.com/PHP-Prefixer/Getting-Started_prefixed
The documentation about this sample code can be found here: https://php-prefixer.com/docs/guides/
This sample project is written based on Composer original documentation, Basic usage / Autoloading.
To run this sample project, run the following command:
~$ php a-simple-test.php
The test writes a file app.log
with the following output:
[2020-10-08 17:40:19] name.WARNING: Foo [] []
MIT License
Copyright (c) 2020 Desarrollos Inteligentes Virtuales, SL