ysuarez / chullo

Chullo is a PHP client for Fedora 4 built using Guzzle and EasyRdf.

Home Page:https://packagist.org/packages/islandora/chullo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chullo Chullo

Chullo is a PHP client for Fedora built using Guzzle and EasyRdf.

Latest Stable Version Minimum PHP Version Downloads Build Status Contribution Guidelines LICENSE codecov

Requirements

Installation

  1. git clone git@github.com:Islandora-CLAW/chullo.git
  2. cd chullo
  3. php composer.phar install

You can also install with composer by pointing to your local clone. Just add these relevant bits to your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "/path/to/chullo"
        }
    ],
    "require": {
        "islandora/chullo": "dev-master"
    }
}

Then just php composer.phar install as usual.

Usage

use Islandora\Chullo\Chullo;

// Instantiated with static factory
$chullo = FedoraApi::create('http://localhost:8080/fcrepo/rest');

// Create a new resource
$uri = $chullo->createResource(); // http://localhost:8080/fcrepo/rest/0b/0b/6c/68/0b0b6c68-30d8-410c-8a0e-154d0fd4ca20

// Parse resource as an EasyRdf Graph
$graph = $chullo->getGraph($uri);

// Set the resource's title
$graph->set($uri, 'dc:title', 'My Sweet Title');

// Save the graph to Fedora
$chullo->saveGraph($uri, $graph);

Maintainers/Sponsors

Current maintainers:

Development

If you would like to contribute to this module, please check out CONTRIBUTING.md.

About

Chullo is a PHP client for Fedora 4 built using Guzzle and EasyRdf.

https://packagist.org/packages/islandora/chullo

License:MIT License


Languages

Language:PHP 100.0%