Configuration

Phel comes with some configuration options. They are stored in the phel-config.php file in the root directory of every project.

Structure#

These are all Phel specific configuration options available.

<?php
// phel-config.php
return [
    'src-dirs' => ['src'],
    'test-dirs' => ['tests'],
    'vendor-dir' => 'vendor',
    'export' => [
        'directories' => ['src'],
        'namespace-prefix' => 'PhelGenerated',
        'target-directory' => 'src/PhelGenerated'
    ]
]

Options in detail#

This chapter contains all configuration options explained in detail.

src-dirs#

A list of directories in which the source files for the project are located.

test-dirs#

A list of directories in which the test files are located.

vendor-dir#

The name of the compsoer vendor directory. Default is vendor.

export#

These configuration options are used for the Phel export command that is described in the PHP Interop chapter. Currently, the export command requires three options: