A package manager for Yii
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with phpnode:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
commands
components
models
repositories
tests
README.md
package.json

README.md

Warning - Pre Alpha, don't use it yet!

Yii Package Manager

A package manager for Yii based on git, you can use it to install and publish reusable Yii extensions. Things like upgrading and installing dependencies are managed for you.

Installing YPM

Installation is somewhat awkward at the moment and a script will be provided in future. For now, follow these instructions:

  1. Ensure you have git installed.
  2. Create a packages directory in your application folder. This is where your installed packages will live.
  3. In your packages folder, run the following git commands:
git clone git://github.com/phpnode/YiiGit.git git
git clone git://github.com/phpnode/YiiCurl.git curl
git clone git://github.com/phpnode/Yii-Package-Manager.git ypm
  1. In your main application config (config/main.php), add the packages alias and configure the package manger:
"aliases" => array(
    "packages" => dirname(__FILE__)."/packages",
    ...
),
"components" => array(
    "packageManager" => array(
        "class" => "packages.ypm.components.APackageManager",
    ),
    ...
),
  1. In your console application config (config/console.php), add the packages alias, configure the package manager and add the ypm command.
"aliases" => array(
    "packages" => dirname(__FILE__)."/packages",
    ...
),
"commandMap" => array(
    "ypm" => array(
        "class" => "packages.ypm.commands.APackageCommand",
    ),
),
"components" => array(
    "packageManager" => array(
        "class" => "packages.ypm.components.APackageManager",
    ),
    ...
),
  1. Finish installation by running the following command:
./yiic package configure ypm