mynameiszanders/yiiskeleton

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii skeleton app for quick bootstrapping of new projects via Composer's create-project command.

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Language:JavaScript

Type:project

1.1 2013-09-16 03:21 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:27:08 UTC


README

This project is designed to kickstart/bootstrap a new Yii application through Composer commands. Although it doesn't provide any functionality other than basic user authentication, it does provide many event declarations and an Event/Behaviour manager to allow the building of drop-in addons.

This project utilises the following libraries:

  • PHPass: a library for the easy and secure management of passwords in PHP.
  • Yii Framework: a high-performance PHP framework best for developing Web 2.0 applications.

License

This project is licensed under the MIT/X11 open-source license. Copyright is held by the projects author, Zander Baldwin (2013).

Documentation

Documentation is somewhat lacking for this project. Efforts have been focused on developing the application shell. Documentation will start appearing once this project reaches beta status.

All current documentation for this project is within the source-code itself, as comments or DocComments.

Source Code

This project is kept under Git and is hosted on the GitHub. Source code can be accessed from git@github.com:mynameiszanders/yiiskeleton.git.

Installation

This project is designed to be installed via Composer's create-project command.

composer create-project mynameiszanders/yiiskeleton /path/to/project 1.0.0-alpha

Create the file application/config/databases.php which returns an array of environment-separated database credentials. For example:

<?php
    return array(
        'develop' => array(
            'connectionString' => 'mysql:host=localhost;dbname=test',
            'username' => 'root',
            'password' => '',
        ),
        'production' => array(
            'connectionString' => 'mysql:host=localhost;dbname=longDatabaseName',
            'username' => 'accountName',
            'password' => 'supersecret',
            'tablePrefix' => 'app_'
        ),
    );

Next, place the name of your chosen environment inside application/config/.environment. Then perform the database migration which will upgrade your database to work with the application:

PROJECT="/path/to/project"

$ cd "$PROJECT/application"
$ ./yiic migrate

Note: This project has been built on the presumption that it will run on a 64-bit Debian, or Ubuntu, server with PHP 5.3+.

Authors

Contact

Please contact Darsyn directly on the following details for bug reports, feature requests, patch submissions, etc.:

Darsyn Technologies 14 Hilda Street,
Pontypridd, Rhondda Cynon Taf,
United Kingdom. CF37 1TT.

Development Guidelines

Database

After you have set up your database credentials in application.config.databases, all changes to the database that are not done through normal application operations must be done through database migrations with the yiic tool. This means any schema changes, and default data.

As a rule of thumb, until you are comfortable with database changes being done this way, the use of phpMyAdmin is forbidden except as a reference tool.

Source Code

Coming soon...