InstallationΒΆ

You can get a fresh copy of PHPLucidFrame on the official website. You can also fork and clone the GitHub repository using git. Alternatively, you can install it using Composer with the command:

composer create-project --prefer-dist phplucidframe/phplucidframe [your-project-name]

Regardless of how you downloaded it, place the code inside of your DocumentRoot. In production, your directory setup may look something like the following so that it can be accessible via http://www.example.com

/path_to_webserver_document_root
    /app
    /assets
    /business
    /db
    /files
    /i18n
    /inc
    /lib
    /tests
    /vendor
    .htaccess
    index.php

In this case, the configuration variable baseURL in /inc/parameter/production.php should look like this:

return array(
    # No trailing slash (only if it is located in a sub-directory of the document root)
    # Leave blank if it is located in the document root
    'baseURL' => '',
    // ....
);

In development, you could have a directory name, for example, phplucidframe. Then your directory setup may look something like the following so that it can be accessible via http://localhost/phplucidframe.

/path_to_webserver_document_root
    /phplucidframe
    /app
    /assets
    /business
    /db
    /files
    /i18n
    /inc
    /lib
    /tests
    /vendor
    .htaccess
    index.php

In this case, the configuration variable baseURL in /inc/parameter/development.php should look like this:

return array(
    # No trailing slash (only if it is located in a sub-directory of the document root)
    # Leave blank if it is located in the document root
    'baseURL' => 'phplucidframe',
    // ....
);

Note: phplucidframe would be your project name.