Download the PHP package ajf/php4_constructor_finder without Composer

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

PHP 4 Constructor Finder

Name says it all. It's a tiny little PHP script that uses Nikita Popov's PHP-Parser to find PHP 4 constructors.

What are PHP 4 constructors? These:

class Bar {
    public function Bar() {
    }
}

If you didn't know (oh dear god), the modern way to make a constructor is public function __construct() - but for backwards-compatibility, we keep around this thing where a function with the same name of the class is magically a constructor. Yuck.

This is a problem, because what if you make a class called Filter with a method called filter? Uh-oh.

So, Levi Morrison wrote an RFC to get rid of this, and I wrote this at his request. It finds PHP4 constructors. That's it, really.

Installation and Usage

For development, composer install in the checked-out repo. For normal use, composer install -g ajf/PHP4_Constructor_Finder.

Command line usage is finder file1.php file2.php ....

Run the tests with vendor/bin/phpunit --bootstrap vendor/autoload.php src/tests.php.


All versions of php4_constructor_finder with dependencies

PHP Build Version
Package Version
Requires nikic/php-parser Version ~1.0
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 ajf/php4_constructor_finder contains the following files

Loading the files please wait ....