在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:RootSoft/laravel-ipfs开源软件地址:https://github.com/RootSoft/laravel-ipfs开源编程语言:PHP 99.3%开源软件介绍:laravel-ipfsThe InterPlanetary File System is a peer-to-peer hypermedia protocol designed to make the web faster, safer, and more open. IPFS uses content-addressing to uniquely identify each file in a global namespace connecting all computing devices. It is an ideal solution for a decentralized storage for blockchain-based content and is optimized for the Algorand blockchain . Introductionlaravel-ipfs is a simple wrapper around the IPFS HTTP API with an elegant approach to connect your application to the IPFS network so you can easily host and fetch content with just a few lines of code. Once installed, you can simply connect your application to the network and add content: $ipfs->add(Utils::tryFopen('ipfs.png', 'r'), 'ipfs.png', ['pin' => true]); or show IPFS object data: $contents = $ipfs->cat('QmNZdYefySKuzF37CWjR8vZ319gYToS61r3v3sRwApXgaY'); Getting startedInstallation
You can install the package via composer: composer require rootsoft/laravel-ipfs UsageCreate an new $ipfs = new IPFSClient('127.0.0.1', 5001); That's it! We can now easily add new content on a decentralized network!
Laravel |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论