method createRemoteRepository documentation in bbn\Api\Git
function(string $repository, string $user, string $passw, string $localPath, string $server = 'github.com')
{
$rep = self::init($localPath);
if ( is_object($rep) ){
$remote = 'https://'.$server.'/'.$user.'/'.$repository.'.git';
if ( !empty($this->addRemote('origin', $remote)) ){
file_put_contents($localPath.'/README.md', '#README');
if ( !empty($this->addAllChanges()) ){
if ( !empty($this->commit("New Repository")) ){
return $this->pushInRemote($repository, $user, $passw, $server);
}
}
}
}
}
return false;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions