Datmachine
Business Analytics for SaaS
The design of this library was heavily influenced by Httpful.
Requirements
Issues
Please use appropriately tagged github issues to request features or report bugs.
Installation
You can install using composer or from source. Note that Datmachine is PSR-0 compliant:
Composer
If you don't have Composer install it:
$ curl -s https://getcomposer.org/installer | php
Require datmachine in your composer.json:
{
"require": {
"datmachine/datmachine": "1.*"
}
}Refresh your dependencies:
$ php composer.phar updateThen make sure to require the autoloader and initialize all:
<?php
require(__DIR__ . '/vendor/autoload.php');
\Httpful\Bootstrap::init();
\RESTful\Bootstrap::init();
\Datmachine\Bootstrap::init();
...Source
Download Httpful source:
$ curl -s -L -o httpful.zip https://github.com/nategood/httpful/zipball/v0.2.3;
$ unzip httpful.zip; mv nategood-httpful* httpful; rm httpful.zipDownload RESTful source:
$ curl -s -L -o restful.zip https://github.com/matthewfl/restful/zipball/master;
$ unzip restful.zip; mv matthewfl-restful* restful; rm restful.zipDownload the Datmachine source:
$ curl -s -L -o datmachine.zip https://github.com/datmachine/datmachine-php/zipball/master
$ unzip datmachine.zip; mv datmachine-datmachine-php-* datmachine; rm datmachine.zipAnd then require all bootstrap files:
<?php
require(__DIR__ . "/httpful/bootstrap.php")
require(__DIR__ . "/restful/bootstrap.php")
require(__DIR__ . "/datmachine/bootstrap.php")
\Httpful\Bootstrap::init();
\RESTful\Bootstrap::init();
\Datmachine\Bootstrap::init();
...Quickstart
Refer to the Quickstart guide in the Datmachine Documentation.
Usage
See https://datmachine.co/docs/api for guides and documentation.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Write your code and tests
- Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new pull request