Download

In order to download the ShineISP project, you have to use Git and Composer (see requirements page).

The updated copy of the source code is available by the Git connection. What we suggest you is to use the Git connection so you will get everytime the updated software.

We are using a common linux distro, and after installing Apache and PHP we can use the DOCROOT. In our case: /var/www and then we have to create a shineisp2.local directory.

Open a shell terminal, go to the /var/www/shineisp2.local directory (if it does not exist you have to create a dir called shineisp2.local) and type:

git clone -b zf/release-2.1.6 https://github.com/zendframework/ZendSkeletonApplication.git /var/www/shineisp2.local

Press enter. A new directory will be created: shineisp2.local

Adding the project module references

Open the project directory with your PHP IDE and add these lines in the composer.json file in the root of the project:

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "minimum-stability": "dev",
    "homepage": "http://framework.zend.com/",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/shineisp/Base.git"
        },
        {
            "type": "vcs",
            "url": "https://github.com/shineisp/Admin.git"
        },
        {
            "type": "vcs",
            "url": "https://github.com/shineisp/Cms.git"
        },
        {
            "type": "vcs",
            "url": "https://github.com/shineisp/Customer.git"
        },
        {
            "type": "vcs",
            "url": "https://github.com/shineisp/Profile.git"
        }
    ],

    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework":  "2.*",
        "shinesoftware/base":           "dev-master",
        "shinesoftware/admin":          "dev-master",
        "shinesoftware/cms":            "dev-master",
        "shinesoftware/customer":       "dev-master",
        "shinesoftware/profile":        "dev-master"
    }
}

Pay attention to this line:

"minimum-stability": "dev"

This line tells to composer that we want the development release of the modules.

Now we have to activate the main modules in the /config/application.config.php:

<?php
return array(
    // This should be an array of module namespaces used in the application.
    'modules' => array(
        'AssetManager',

        // Generic modules for the main application
        'ScnSocialAuth',
        'ZfcBase',
        'ZfcUser',
        'GoalioMailService',
        'GoalioForgotPassword',
        'ZfcDatagrid',
        'ZfcAdmin',
        'BjyAuthorize',
        'GoogleMaps',

        // Shine Software modules start
        // pay attention: the position of the module affects the routes and the assets
        'Base',
        'Admin',
        'Cms',
    ),
    ...

Now go inside the directory by the linux shell

cd shineisp2.local

and now we have to execute the composer command:

composer update

The source-code is now downloaded on your server. This process may take some time.

results matching ""

    No results matching ""