public static function installPhantomJS(Event $event)
    {
        $installer = new static($event->getComposer(), $event->getIO());
        return $installer->__invoke();
    }
public static function installPhantomJS(Event $event)
    {
        $installer = new static($event->getComposer(), $event->getIO());
        return $installer->__invoke();
    }
public static function installPhantomJS ( Event $ event ) { $ installer = new static ( $ event -> getComposer ( ) , $ event -> getIO ( ) ) ; return $ installer -> __invoke ( ) ; }
installPhantomJS is the main function of the install script.

It installs PhantomJs into the defined /bin folder,
taking operating system dependend archives into account.

You need to invoke it from the scripts section of your
"composer.json" file as "post-install-cmd" or "post-update-cmd".

@param Event $event
installPhantomJS is the main function of the install script .