Download the PHP package g33kme/ipfs without Composer
On this page you can find all versions of the php package g33kme/ipfs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package ipfs
Short Description IPFS PHP Wrapper - About Easy to use PHP Wrapper for IPFS to work with the HTTP API of IPFS. When an IPFS node is running as a daemon, it exposes an HTTP API that allows you to control the node.
License MIT
Homepage https://geekme.com
Informations about the package ipfs
IPFS PHP
Easy to use PHP Wrapper for IPFS to work with the HTTP API of IPFS. When an IPFS node is running as a daemon, it exposes an HTTP API that allows you to control the node.
In many cases, using this API this is preferable to embedding IPFS directly in your program — it allows you to maintain peer connections that are longer lived than your app and you can keep a single IPFS node running instead of several if your app can be launched multiple times
🙏 You own some ADA? Help us improve this project by staking your ADA to our pool with ticker: GEEK
GeekMe Stake Pool
1. Install and use IPFS PHP
If you don't have any IPFS Node API running where you can connect IPFS PHP to, please follow first the installation steps in part 2.
This library is installable via Composer:
You can also simply manually include source/ipfs.php
from this repository to your project and use the IPFS PHP Class.
Requirements
This library requires PHP 7.1 or later and if you use Composer you need Version 2+.
2. Installation: IPFS Node
If you have already a running IPFS node where your can connect our IPFS PHP Wrapper to, you can skip the installation part.
⭕ Important!
IPFS can run on most Linux, macOS, and Windows systems. We recommend running it on a machine with:
- Min 2 vCPU
- Min 2GB of RAM (4GB Recommended)
- 50 GB of disk space (Ideally SSD)
- Good internet connection (at least 10Mbps)
Alright, let's try to setup your IPFS node, we running on Ubuntu 20.04 LTS
2.1 GoLang is needed for running your IPFS node
2.2 Installing IPFS with ipfs-update
First, you’ll want to install ipfs-update. This handy package allows you to easily update your ipfs client whenever there are new updates without having to go through a bunch of manual upgrade headaches.
2.3 Creating an IPFS service so your IPFS node is running all the time
If you exit your SSH session on your Server, IPFS will shut down. You can fix this by creating an ubuntu systemd service to keep things running.
2.4 Incoming Ports of your IPFS Node
⭕ Very important!
Your IPFS Node creates a public accessible HTTP API and open some other ports to work with other IPFS nodes. At easiest and best simple create firewall rules to access the cardano-wallet API only from specific IPs. You can create firewalls, mostly free, on popular hosting providers like Hetzner, Vultr or DigitalOcean. Of course you can setup a custom firewal rule in your operating system as well.
TCP 4001
This is the primary port that your IPFS node will use to communicate to other IPFS nodes, you should keep that open for any IP4/6 address.
TCP 5001
This is your IPFS API to connect our IPFS PHP library to, you should only allow inbound traffic on specific IPs
TCP 8080
This is needed if you want to run your node as a gateway node. This is the port where you can see the content of your IPFS has.
For example, you can retrieve an image of some of our Geekme Logos Geekme Logo
TCP 8081
This is needed if you want to run pubsub capabilities on your node.
1.5 Changing listen IP address and ports
You may run your IPFS node on other ports and run on your public IP address to access.
Simply set your listen IP address to 0.0.0.0
to listen on all available IPs of your server.
E.g set as API config: /ip4/0.0.0.0/tcp/5001
You may also add some peers from popular sites as cloudflare, pinata etc, so your uploaded files on your IPFS node get sync faster.
Open /root/.ipfs/config
file and change "Bootstrap" Contet to the following
🙏 Supporters
You own some ADA? Stake your ADA to our pool with ticker: GEEK
GeekMe Stake Pool
☕ Wanna buy me a coffee or two? Send some ADA to our donation address: addr1qxksn95zhgje7tvdsgfpk9t49sssz4fqewt74neh56cnl4ml8zpc3556jh8exfp70a6f3pva7yf4fmfmw52tdh3dh94sqdvu27