lib/GitHub/Receiver/Repositories.php
public function createRepository(string $name, string $description = '', string $homepage = '',
                                     bool $private = false, bool $hasIssues = true, bool $hasWiki = true,
                                     bool $hasDownloads = true, int $teamId = 0, bool $autoInit = false,
                                     string $gitignoreTemplate = '', string $licenseTemplate = ''): array
    {
        return $this->getApi()->request(sprintf('/user/repos'), Request::METHOD_POST, [
                'name'               => $name,
                'description'        => $description,
                'homepage'           => $homepage,
                'private'            => $private,
                'has_issues'         => $hasIssues,
                'has_wiki'           => $hasWiki,
                'has_downloads'      => $hasDownloads,
                'team_id'            => $teamId,
                'auto_init'          => $autoInit,
                'gitignore_template' => $gitignoreTemplate,
                'license_template'   => $licenseTemplate
            ]);
    }
public function createRepository(string $name, string $description = '', string $homepage = '',
                                     bool $private = false, bool $hasIssues = true, bool $hasWiki = true,
                                     bool $hasDownloads = true, int $teamId = 0, bool $autoInit = false,
                                     string $gitignoreTemplate = '', string $licenseTemplate = ''): array
    {
        return $this->getApi()->request(sprintf('/user/repos'), Request::METHOD_POST, [
                'name'               => $name,
                'description'        => $description,
                'homepage'           => $homepage,
                'private'            => $private,
                'has_issues'         => $hasIssues,
                'has_wiki'           => $hasWiki,
                'has_downloads'      => $hasDownloads,
                'team_id'            => $teamId,
                'auto_init'          => $autoInit,
                'gitignore_template' => $gitignoreTemplate,
                'license_template'   => $licenseTemplate
            ]);
    }
public function createRepository ( string $ name , string $ description = '' , string $ homepage = '' , bool $ private = false , bool $ hasIssues = true , bool $ hasWiki = true , bool $ hasDownloads = true , int $ teamId = 0 , bool $ autoInit = false , string $ gitignoreTemplate = '' , string $ licenseTemplate = '' ) : array { return $ this -> getApi ( ) -> request ( sprintf ( '/user/repos' ) , Request :: METHOD_POST , [ 'name' => $ name , 'description' => $ description , 'homepage' => $ homepage , 'private' => $ private , 'has_issues' => $ hasIssues , 'has_wiki' => $ hasWiki , 'has_downloads' => $ hasDownloads , 'team_id' => $ teamId , 'auto_init' => $ autoInit , 'gitignore_template' => $ gitignoreTemplate , 'license_template' => $ licenseTemplate ] ) ; }
Create a new repository for the authenticated user.

@link https://developer.github.com/v3/repos/#create

@param string $name
@param string $description
@param string $homepage
@param bool   $private
@param bool   $hasIssues
@param bool   $hasWiki
@param bool   $hasDownloads
@param int    $teamId
@param bool   $autoInit
@param string $gitignoreTemplate
@param string $licenseTemplate

@return array
Create a new repository for the authenticated user .