2017 © Pedro PelĂĄez
 

project yii2-github-browser

My Yii2 GitHub Browser

image

alenkasun/yii2-github-browser

My Yii2 GitHub Browser

  • Monday, July 13, 2015
  • by alenkasun
  • Repository
  • 1 Watchers
  • 0 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 GitHub Browser App

Yii2 GitHub Browser App was built on Yii 2 Basic Project Template is a skeleton Yii 2 application best for rapidly creating small projects., (*1)

REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 5.4.0., (*2)

VIRTUAL HOST CONFIGURATION

1) C:\Windows\System32\drivers\etc\hosts add lines:, (*3)

    127.0.0.1       your-name-site.local
    127.0.0.1       www.your-name-site.local

2) For your local server must change httpd-vhosts.conf. For example in my case find C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf and add lines:, (*4)

<VirtualHost *:80>
    DocumentRoot "c:/wamp/www/your-name-site/web/"
    ServerName your-name-site.local
    SetEnv APPLICATION_ENV "development"
    <Directory "c:/wamp/www/your-name-site/web/">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

INSTALLATION

Step 1 - install APP from an Archive File

Click «Download ZIP» on https://github.com/alenkasun/yii2-github-browser and unzip in local site 
\your-name-site\, so you must receive the next structure in local site root::, (*5)

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources
  ....

Step 2 - install dependency libs via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org., (*6)

Install folder VENDOR with all dependency libs via Copmoser: open cmd.exe in site root (shirt + command from context menu) and perform:, (*7)

  - if composer was installed globally:
        composer self-update
        composer install
  - else:
        php composer.phar self-update
        php composer.phar install

As a result there is a folder VENDOR at site root., (*8)

DATABASE CONFIGURATION

Database installation

Create new BD and import github_browser.sql via convinient BD-client (example: via phpMyAdmin or HeidiSql)., (*9)

Database config

Edit the file config/db.php with real data, for example:, (*10)

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=github_browser',
    'username' => 'git',
    'password' => 'git',
    'charset' => 'utf8',
];

Now you should be able to access the application through the following URL:, (*11)

http://your-name-site.local/

The Versions

13/07 2015

dev-master

9999999-dev http://webtask.tk/

My Yii2 GitHub Browser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic