PHPackages                             taywils/patomic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. taywils/patomic

ActiveLibrary

taywils/patomic
===============

An Object Oriented PHP interface for the Datomic REST API

281881[1 issues](https://github.com/taywils/patomic/issues)PHP

Since Oct 15Pushed 11y ago2 watchersCompare

[ Source](https://github.com/taywils/patomic)[ Packagist](https://packagist.org/packages/taywils/patomic)[ RSS](/packages/taywils-patomic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Patomic - An Object Oriented PHP interface for the Datomic REST API
===================================================================

[](#patomic---an-object-oriented-php-interface-for-the-datomic-rest-api)

[![Build Status](https://camo.githubusercontent.com/ab38e13923f3705eec69409000f9cc34fd252b63fdf4cf79ecd6a486cd70fbbb/68747470733a2f2f7472617669732d63692e6f72672f74617977696c732f7061746f6d69632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/taywils/patomic)

Requirements
------------

[](#requirements)

1. The full Java dev environment [java.com](http://www.java.com) both JDK and JRE
2. Datomic free edition [datomic.com/free](http://downloads.datomic.com/free.html)
3. [Composer](http://getcomposer.org/)
4. PHP &gt;= 5.4 (It uses traits)

Quickstart
----------

[](#quickstart)

Once you have met the requirements and downloaded Datomic.

```
$ cd [directory_where_datomic_is_installed]
$ ./bin/rest -p 9998 example datomic:mem://

```

Now create a new directory somewhere on your hard drive which will hold your new Patomic project files.

```
$ cd ~
$ mkdir [my_patomic_project_name]
$ cd [my_patomic_project_name]
$ touch composer.json

```

Add the following to your composer.json in order to have composer install Patomic for your project.

```
{
  "require": {
    "taywils/patomic": "dev-master",
    "igorw/edn": "1.0.*@dev",
    "nikic/phlexy": "1.0.*@dev"
  }
}
```

Run composer install and watch for any possible errors. This step may vary depending on how/where you installed composer but for a typical Linux machine running the latest version of Ubuntu.

```
$ sudo php composer.phar install

```

Within the same directory we now want to create a new file; lets call it app.php

```
$ touch app.php

```

Use your favorite editor/IDE and open app.php and add the following.

```
