Download the PHP package despark/kohana without Composer
On this page you can find all versions of the php package despark/kohana. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package kohana
Kohana project template for Composer
This is how we bootstrap a Kohana project.
Creating a new project
To create a project foobar
run:
That's it! You now have a Kohana project with some important modules installed, CLI tools, permissions set up and more!
What is installed
- Kohana core
- Official Kohana modules:
- Other Kohana modules:
- Phinx migrations (see Migrations)
- Password compatbility (see Password hashing)
Installing additional libraries
You could run:
This would update the require
section in composer.json
, install the library and update the composer.lock
file.
See the suggest
section in composer.json
for a useful list of Kohana modules and other libraries.
Bootstrap
The bootstrap file for Kohana is filled with a lot of goodies. You should check it out here: bootstrap.php
.
Password hashing
The PHP 5.5 password_hash
.
Compatibility for PHP <5.5.0 is achieved using Anthony Ferrara's password_compat.
Database configuration
Kohana Database module is configured based on environments. The database name defaults to the project name.
Migrations
Migrations are done via phinx. Configuration is in phinx.yml. The database name defaults to the project name.
Under the hood
If you are curious how your project is actually built you should check out:
- Composer
create-project
command composer.json
Here is a summary:
- First it clones this repo in a folder with the name you've provided.
- Then it finds all dependencies listed in the
require
andrequire-dev
sections incomposer.json
and their dependencies as well. - Downloads them and put them in either
modules/
. - Then it runs the scripts from the
post-create-project-cmd
section incomposer.json
:- Creates
application/classes/Model
,application/migrations
andapplication/views
. chmod
with 755application/migrations
- Generates a random string and sets
Cookie::$salt
with it. - Replace
{{DATABASE_NAME}}
inapplication/config/database.php
with the name of the project.
- Creates
All versions of kohana with dependencies
kohana/core Version ~3.3.1
kohana/database Version ~3.3.1
kohana/auth Version ~3.3.1
kohana/cache Version ~3.3.1
kohana/image Version ~3.3.1
openbuildings/jam Version ~0.4.46
openbuildings/jam-auth Version ~0.2.3
robmorgan/phinx Version ~0.3.0
ircmaxell/password-compat Version ~1.0.3
symfony/console Version ~2.4.0