Download the PHP package fliq/ipfs-laravel without Composer
On this page you can find all versions of the php package fliq/ipfs-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fliq/ipfs-laravel
More information about fliq/ipfs-laravel
Files in fliq/ipfs-laravel
Package ipfs-laravel
Short Description :package_description
License MIT
Homepage https://github.com/fliq/ipfs-laravel
Informations about the package ipfs-laravel
IpfsLaravel
Interact with IPFS in Laravel.
Installation
Via Composer
Usage
Basic usage
Configuration
To publish your config run:
Adding Files
You can flexibly add new files to IPFS using the add()
method.
You can add files from a string, a resource or an array, arrays will be json encoded.
Use array keys to specify files names.
The second argument is an array of options more information on
the IPFS documentation.
The wrap-with-directory
option will create an extra CID for the directory.
Retrieving files
You can retrieve files using the cat()
, get()
, and json()
methods.
cat()
- Returns a StreamInterface
get()
- returns a string
json()
- returns a json decoded array
Asynchronous requests
Use the async()
method to make asynchronous requests.
Async requests return Promises
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author@email.com instead of using the issue tracker.
Credits
- Christian Pavilonis
- All Contributors
License
MIT. Please see the license file for more information.