2017 © Pedro Peláez
 

yii2-extension yii2-packaii

Yii2 Framework Web-UI for browsing composer packages

image

schmunk42/yii2-packaii

Yii2 Framework Web-UI for browsing composer packages

  • Tuesday, December 16, 2014
  • by schmunk
  • Repository
  • 10 Watchers
  • 18 Stars
  • 5,341 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 10 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Packaii

Packagist composer package browser for Yii2 Framework, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist schmunk42/yii2-packaii "*"

or add, (*4)

"schmunk42/yii2-packaii": "*"

to the require section of your composer.json file., (*5)

Setup

Once the extension is installed, load the module in your application config:, (*6)

'modules' => [
    'packaii' => [
        'class' => 'schmunk42\packaii\Module'
    ]
]

Setup a project root alias:, (*7)

'aliases' => [
    '@root' => realpath(__DIR__ . '/../../'), // path to your composer.json file
]

For easy access, we also recommend you to add the packaii panel to the debug toolbar:, (*8)

'panels' => [
    'packaii'   => ['class' => 'schmunk42\packaii\panels\PackaiiPanel',],
]

Since you may hit the GitHub API limit of 50 requests per hour for unauthorized clients pretty fast. You can add your GitHub username and password to the config:, (*9)

'modules' => [
    'packaii' => [
        'gitHubUsername' => 'your_username',
        'gitHubPassword' => 'super_secrect'
    ],
],

Usage

Follow the panel link to http://application/web/index.php?r=packaii. On the index page you'll see some basic information about the packages installed., (*10)

You can search packages locally or on Packagist with the search box on the left sidebar. After selecting a package, the README file and some action buttons for installing, updating or removing a package will be displayed., (*11)

Please note that packaii is currently not executing any composer actions directly, but it will give you the commands ready to copy and paste into your console., (*12)

Troubleshooting

Open http://your-application/index.php?r=debug/default/view&panel=packaii to check the module status., (*13)

Screenshots

Packaii, (*14)

The Versions