Skip to content

Commit

Permalink
Merge pull request #12 from daniel-dgi/master
Browse files Browse the repository at this point in the history
Installation section in README
  • Loading branch information
ruebot committed Oct 9, 2015
2 parents dcd2664 + 0481671 commit 8efdfd4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,31 @@ Chullo is a PHP client for Fedora 4 built using Guzzle and EasyRdf.
* PHP 5.5+
* [Composer](https://getcomposer.org/)

## Installation

We’re currently working out getting onto [Packagist](https://packagist.org/). Until then, you can still install it using 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

```php
use Islandora\Chullo\Chullo;

// Instantiated with static factory
$chullo = Chullo::create(“http://localhost:8080/fcrepo/rest”);

Expand All @@ -38,11 +60,13 @@ for ($i = 0; $i < 20; $i++) {
<> dc:title "Child Resource $i"
EOD;

// Using all possible arguments in createResource() this time
$child_uri = $chullo->createResource(
$uri,
$rdf,
['Content-Type' => 'text/turtle'],
$transaction
$transaction,
sha1($rdf)
);
}

Expand Down

0 comments on commit 8efdfd4

Please sign in to comment.