{"id":21616374,"url":"https://github.com/rootsoft/laravel-ipfs","last_synced_at":"2025-08-20T20:27:03.538Z","repository":{"id":47523526,"uuid":"354944779","full_name":"RootSoft/laravel-ipfs","owner":"RootSoft","description":"A Laravel package to communicate with IPFS","archived":false,"fork":false,"pushed_at":"2023-02-14T18:23:18.000Z","size":58,"stargazers_count":31,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-03T14:41:08.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RootSoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-05T19:13:36.000Z","updated_at":"2025-04-09T00:15:20.000Z","dependencies_parsed_at":"2024-11-14T18:42:32.826Z","dependency_job_id":null,"html_url":"https://github.com/RootSoft/laravel-ipfs","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"e900355db638dd9302abda3dee78532da10a7f45"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/RootSoft/laravel-ipfs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flaravel-ipfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flaravel-ipfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flaravel-ipfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flaravel-ipfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RootSoft","download_url":"https://codeload.github.com/RootSoft/laravel-ipfs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flaravel-ipfs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271378680,"owners_count":24749192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T22:14:20.494Z","updated_at":"2025-08-20T20:27:03.471Z","avatar_url":"https://github.com/RootSoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \n\u003cimg src=\"https://miro.medium.com/max/638/0*o30AAwcHRvsA840O.jpg\"\u003e\n\u003c/p\u003e\n\n# laravel-ipfs\n[![Packagist][packagist-shield]][packagist-url]\n[![Downloads][downloads-shield]][downloads-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\nThe InterPlanetary File System is a peer-to-peer hypermedia protocol designed to make the web faster, safer, and more open.\nIPFS uses content-addressing to uniquely identify each file in a global namespace connecting all computing devices.\n\nIt is an ideal solution for a decentralized storage for blockchain-based content and is optimized for the [Algorand blockchain](https://www.algorand.com/) .\n\n## Introduction\nlaravel-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.\n\nOnce installed, you can simply connect your application to the network and add content:\n\n```php\n$ipfs-\u003eadd(Utils::tryFopen('ipfs.png', 'r'), 'ipfs.png', ['pin' =\u003e true]);\n```\n\nor show IPFS object data:\n\n```php\n$contents = $ipfs-\u003ecat('QmNZdYefySKuzF37CWjR8vZ319gYToS61r3v3sRwApXgaY');\n```\n\n## Getting started\n\n### Installation\n\u003e **Note**: laravel-ipfs requires PHP 7.4+\n\nYou can install the package via composer:\n\n```bash\ncomposer require rootsoft/laravel-ipfs\n```\n\n## Usage\nCreate an new ```IPFSClient``` and pass the IP address and port of your local (or [pinned](https://pinata.cloud/)) network.\n\n```php\n$ipfs = new IPFSClient('127.0.0.1', 5001);\n```\n\n**That's it!** We can now easily add new content on a decentralized network!\n\n### Laravel :heart:\nWe've added special support to make the life of a Laravel developer even more easy!\n\nPublish the ```ipfs.php``` config file using:\n```\nphp artisan vendor:publish --provider=\"Rootsoft\\IPFS\\IPFSServiceProvider\" --tag=\"config\"\n```\n\nOpen the ```config/ipfs.php``` file in your project and insert your credentials\n```php\nreturn [\n    'ipfs' =\u003e [\n        'base_url' =\u003e '127.0.0.1',\n        'port' =\u003e 5001,\n    ],\n];\n```\n\nNow you can use the ```IPFS``` Facade!\n\n```php\n$fileHash = IPFS::add($collectible-\u003eget(), $fileName, ['only-hash' =\u003e true])['Hash'];\n```\n\n## Methods\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing \u0026 Pull Requests\nFeel free to send pull requests.\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Tomas Verhelst](https://github.com/rootsoft)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[packagist-shield]: https://img.shields.io/packagist/v/rootsoft/laravel-ipfs.svg?style=for-the-badge\n[packagist-url]: https://packagist.org/packages/rootsoft/laravel-ipfs\n[downloads-shield]: https://img.shields.io/packagist/dt/rootsoft/laravel-ipfs.svg?style=for-the-badge\n[downloads-url]: https://packagist.org/packages/rootsoft/laravel-ipfs\n[issues-shield]: https://img.shields.io/github/issues/rootsoft/laravel-ipfs.svg?style=for-the-badge\n[issues-url]: https://github.com/rootsoft/laravel-ipfs/issues\n[license-shield]: https://img.shields.io/github/license/rootsoft/laravel-ipfs.svg?style=for-the-badge\n[license-url]: https://github.com/rootsoft/laravel-ipfs/blob/master/LICENSE.md","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsoft%2Flaravel-ipfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootsoft%2Flaravel-ipfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsoft%2Flaravel-ipfs/lists"}