public function install()
{
$composer = $this->getComposerConfiguration();
// Next we will add the Spark and Cashier dependencies to the Composer array as
// well as add the Spark "repository" to the configuration so Composer knows
// where Spark is located. Spark will get installed using the path option.
$composer = $this->addRepository($this->addSparkDependency($this->addCashierDependency($composer)));
$this->writeComposerFile($composer);
}