public static function postPackageInstall(PackageEvent $pEvent)
    {
        if ($pEvent->getOperation() instanceof \Composer\DependencyResolver\Operation\InstallOperation) {
            $packageName = $pEvent->getOperation()->getPackage()->getName();
        } else if ($pEvent->getOperation() instanceof \Composer\DependencyResolver\Operation\UpdateOperation) {
            $packageName = $pEvent->getOperation()->getInitialPackage()->getName();
        } else {
            throw new Exception("Event is not supported.");
        }

        $appPath = realpath('.') . DIRECTORY_SEPARATOR;

        $path = realpath('.'
              . DIRECTORY_SEPARATOR
              . $pEvent->getComposer()->getConfig()->get('vendor-dir')
              . DIRECTORY_SEPARATOR
              . $packageName
              . DIRECTORY_SEPARATOR
              . self::SETUP_DIR
              . DIRECTORY_SEPARATOR
              . self::CLI_FILE
        );

        if ($path and is_readable($path)) {
            $config = require($path);

            if (is_array($config)) {
                foreach ($config as $cmd => $args) {
                    if (! is_array($args)) {
                        continue;
                    } else if (count($args) == count($args, COUNT_RECURSIVE)) {
                        self::_execute($cmd, $args);
                    } else {
                        foreach ($args as $cmdArgs) {
                            self::_execute($cmd, $cmdArgs);
                        }
                    }
                }
            }
        }

        return true;
    }