Skip to content

dansup/php-ipfs

Repository files navigation

php-ipfs

Latest Version on Packagist Software License Total Downloads

A PHP wrapper library for the IPFS API server.

Installation

composer require dansup/php-ipfs

Usage

A limited number of methods are supported at the moment, I hope to add them all eventually.

<?php

use Dansup\IPFS\ServerFactory as IPFS;

$ipfs = IPFS::driver('api')->size('QmeM5KhtRMpgp9JbF2FhJ7qA4yDZKDExGmwgYw9sMdELJE');
echo json_encode($ipfs);

Testing

Tests coming soon!

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email danielsupernault@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.