예제 #1
0
<?php

require 'vendor/autoload.php';
// Building a fake SSH key
$sshKey = "";
for ($i = 0; $i < 372; $i++) {
    $sshKey .= chr(rand(ord("a"), ord("z")));
}
$blih = new \Raphy\Blih\Blih($_GET['login'], rawurldecode($_GET['password']));
$json = $blih->repository()->all()->raw_body;
// Listing the created repositories
var_dump($json);
예제 #2
0
<?php

require 'vendor/autoload.php';
// Building a fake SSH key
$sshKey = "";
for ($i = 0; $i < 372; $i++) {
    $sshKey .= chr(rand(ord("a"), ord("z")));
}
$blih = new \Raphy\Blih\Blih($_GET['login'], $_GET['password']);
$repo = $_GET['repo'];
$json = $blih->repository($repo)->create()->raw_body;
var_dump($json);
예제 #3
0
<?php

require 'vendor/autoload.php';
// Building a fake SSH key
$sshKey = "";
for ($i = 0; $i < 372; $i++) {
    $sshKey .= chr(rand(ord("a"), ord("z")));
}
$blih = new \Raphy\Blih\Blih($_GET['login'], rawurldecode($_GET['password']));
$json = var_dump($blih->repository($_GET['repo'])->create()->raw_body);
var_dump($json);
예제 #4
0
<?php

require 'vendor/autoload.php';
// Building a fake SSH key
$sshKey = "";
for ($i = 0; $i < 372; $i++) {
    $sshKey .= chr(rand(ord("a"), ord("z")));
}
$blih = new \Raphy\Blih\Blih($_GET['login'], rawurldecode($_GET['password']));
$json = var_dump($blih->repository($_GET['repo'])->acl()->get()->raw_body);
var_dump($json);
예제 #5
0
<?php

require 'vendor/autoload.php';
// Building a fake SSH key
$sshKey = "";
for ($i = 0; $i < 372; $i++) {
    $sshKey .= chr(rand(ord("a"), ord("z")));
}
$blih = new \Raphy\Blih\Blih($_GET['login'], rawurldecode($_GET['password']));
$json = var_dump($blih->repository($_GET['repo'])->acl()->set($_GET['user'], true, false, false)->raw_body);
// Setting the ACL rights to a repository
var_dump($json);