GitHub

Composer

Install AdminNeo with Composer command:

composer require adminneo-org/adminneo

Now, you can include AdminNeo into your index.php file directly from the source code. Do not forget to change the current working directory:

<?php

chdir("../vendor/adminneo-org/adminneo/admin");

require "index.php";

However, it is highly recommended to use compiled version of AdminNeo. You can set up automatic compilation in your composer.json:

{
    "require": {
        "adminneo-org/adminneo": "^5.1"
    },
    "scripts": {
        "post-update-cmd": [
            "php vendor/adminneo-org/adminneo/bin/compile.php -o vendor/adminneo-org/adminneo/compiled/adminneo.php"
        ]
    }
}

Then include compiled AdminNeo into your index.php file:

<?php

require "../vendor/adminneo-org/adminneo/compiled/adminneo.php";

Compiled version can be configured by additional parameters. See Custom compilation below.