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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

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


All versions of ipfs with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package g33kme/ipfs contains the following files

Loading the files please wait ....