for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodexShaper\WP;
use Composer\Script\Event;
class ComposerScripts
{
/**
* Handle the post-install Composer event.
*
* @param \Composer\Script\Event $event
* @return void
*/
public static function postInstall(Event $event)
require_once $event->getComposer()->getConfig()->get('vendor-dir').'/autoload.php';
}
* Handle the post-update Composer event.
public static function postUpdate(Event $event)
* Handle the post-autoload-dump Composer event.
public static function postAutoloadDump(Event $event)
$dir = $event->getComposer()->getConfig()->get('vendor-dir');
rename($dir.'../wpb.php', $dir.'../hello.php');