/phpcorpus

A collection of various PHP code; useful for PHP tools writers to get some insights on how "real-world" PHP code looks like

PHP corpus

A collection of various PHP code.

Useful for PHP tools writers to get some insights on how "real-world" PHP code looks like.

Installation

To clone this repository with all contents at once:

# This will take a while...
git clone --recurse-submodules --depth 1 https://github.com/quasilyte/phpcorpus.git

If you already cloned phpcorpus without fetching submodules:

$ git submodule init

# This will take a while...
$ git submodule update

After this, you'll have all repositories cloned into submodules/, but that doesn't mean that all of them are ready to be executed or analyzer. Depending on your goals, you may need to run composer install for the project of interest so it downloads all its dependencies.

If you only care about the lightweight syntax analysis, downloading dependencies may not be required as it would only make your results worse due to the code duplication in vendor/ directory (different corpus entries may depend on the same library, so you'll get multiple hits from the same library).

Corpus contents

Only git repositories with open sources are included. We don't copy any code, but add repositories to the git submodules of this repository.

All lists are sorted alphabetically.

This list is not guaranteed to be append-only; some entries may be removed.

License

This repository does not override the license of the code it can fetch via git submodules.

The MIT license applies for the actual repository contents.