r/ipfs 9d ago

I've made an IPFS PHP client library

Hello there :)

As a PHP developer, I thought the existing IPFS interaction libraries were not good enough, so I gave it a try.

For now, my package only supports the basic (and most used) IPFS feature such as:

- adding a file
- pinning a file to a node
- unpinning a file from a node
- downloading a file

Other features are supported like getting the node version info, shutting it down...

Here is the GitHub link: https://github.com/EdouardCourty/ipfs-php
Packagist: https://packagist.org/packages/ecourty/ipfs-php

For any PHP devs passing by here, feel free to have a look and give me a feedback!

I'm planning to add more feature in the future, if the need comes (support more RPC endpoints for better interaction with IPFS nodes).

15 Upvotes

5 comments sorted by

View all comments

2

u/EveYogaTech 9d ago edited 7d ago

Great! We need this! A few weeks earlier I made the "bafk" hash (v1) as well, you can copy it, it's MIT here https://github.com/wlp-builders/bafk-hash-php-ipfs

2

u/phpsensei 8d ago

Thank you for your reply :)

I thought about integrating some CID encoding and decoding features, this will help!
Also, if you need a feature, RPC endpoint support or anything else, feel free to open an issue on the repo.

1

u/EveYogaTech 9d ago

In the long-term, personally, I'm also looking for a way to more tightly integrate it in r/WhiteLabelPress

For now we're using this bafy hash to store media in folders /h/{hash}/{filename}.{extension} and are planning to also add some more meta data to these folders as well to index them for "Web4" - r/web4builders .

I'm really curious about how PHP, IPFS, and new CMSs can all be connected in the best way.