{"id":18877575,"url":"https://github.com/nftstorage/php-client","last_synced_at":"2025-04-14T18:31:49.533Z","repository":{"id":50643892,"uuid":"353384246","full_name":"nftstorage/php-client","owner":"nftstorage","description":"A client library for the NFT.Storage Classic service.","archived":false,"fork":false,"pushed_at":"2024-07-03T04:49:02.000Z","size":52,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-28T07:02:31.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nftstorage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-31T14:26:59.000Z","updated_at":"2024-11-25T17:50:00.000Z","dependencies_parsed_at":"2022-08-02T18:30:11.115Z","dependency_job_id":null,"html_url":"https://github.com/nftstorage/php-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fphp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fphp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fphp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fphp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nftstorage","download_url":"https://codeload.github.com/nftstorage/php-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936752,"owners_count":21186097,"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","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-08T06:20:04.223Z","updated_at":"2025-04-14T18:31:49.265Z","avatar_url":"https://github.com/nftstorage.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFTStorage\n\n_This client was generated via the OpenAPI schema and is experimental, unsupported, and may not work at all!_\n\nNo description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n\n\n## Product Decommission Notice\n\n### Important Update\n\nHello from NFT.Storage!\n\nAs of June 30, 2024, we have officially decommissioned NFT.Storage Classic uploads. This means that NFT.Storage Classic, including NFTUp, the Classic web app, Classic APIs, Classic SDK, and Pinning API, will no longer accept new uploads/pins.\n\n### What This Means for You\n\n**Service Termination:** NFT.Storage Classic will no longer accept new uploads. However, retrieval of existing data remains operational.\n\n**Data Access:** Don't forget, we're still keeping a copy of your NFT.Storage Classic data available in the NFT.Storage Gateway and in the decentralized Filecoin Network. However, over time, latency and availability may degrade.\n\n**Support:** We’ll be working with the newly formed NFT.Storage community to determine what changes, if any, will impact NFT.Storage Classic data latency and availability in the future. Join the community [Join the community](https://nft.storage/join-us) to have your say. We will keep you informed by email and on Twitter/X.\n\n### Transition to the New Version\n\nFor the new version of NFT.Storage, first mint your NFTs, then send us the NFT data—metadata and imagery CIDs, blockchain(s) minted on, contract address, and token IDs. We will preserve these in long-term Filecoin storage. Note that you need to upload the data to IPFS separately. Your NFTs will also be included in the NFT Token Checker, a tool for block explorers, marketplaces, and wallets to show verification that NFT collections, tokens, and CIDs are preserved by NFT.Storage.\n\n### Recommended Hot Storage Alternatives\n\nWe’re excited to announce our partnerships with Pinata and Lighthouse for hot storage solutions. As an NFT.Storage user, you support our platform when you choose Pinata and Lighthouse and use our referral links, helping to sustain our valuable public goods. [Learn more here](https://nft.storage/blog/announcing-our-new-partnerships-with-pinata-and-lighthouse).\n\n**Pinata:** Offers flexible plans and powerful, easy-to-use tools for managing your data on IPFS. Use code NFTSTORAGE50 at checkout to enjoy 50% off your first month. [Sign up today](https://pinata.cloud).\n\n**Lighthouse:** An IPFS provider with unique payment options for NFT longevity. They offer affordability and flexibility for all your IPFS needs, including a pay-once and store-forever option. [Sign up today](https://lighthouse.storage).\n\n### Contact Us\n\nFor any questions or assistance, contact us [contact us](https://nft.storage/contact-us). Together, we look forward to a promising future for NFT.Storage and the broader NFT ecosystem.\n\nBest regards,  \nThe NFT.Storage Team\n\n\n\n## Installation \u0026 Usage\n\n### Requirements\n\nPHP 7.2 and later.\n\n### Composer\n\nTo install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:\n\n```json\n{\n  \"repositories\": [\n    {\n      \"type\": \"vcs\",\n      \"url\": \"https://github.com/nftstorage/php-client.git\"\n    }\n  ],\n  \"require\": {\n    \"nftstorage/php-client\": \"*@dev\"\n  }\n}\n```\n\nThen run `composer install`\n\n### Manual Installation\n\nDownload the files and include `autoload.php`:\n\n```php\n\u003c?php\nrequire_once('/path/to/NFTStorage/vendor/autoload.php');\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```php\n\u003c?php\nrequire_once(__DIR__ . '/vendor/autoload.php');\n\n\n\n// Configure Bearer (JWT) authorization: bearerAuth\n$config = NFTStorage\\Configuration::getDefaultConfiguration()-\u003esetAccessToken('YOUR_ACCESS_TOKEN');\n\n\n$apiInstance = new NFTStorage\\Api\\NFTStorageAPI(\n    // If you want use custom http client, pass your client which implements `GuzzleHttp\\ClientInterface`.\n    // This is optional, `GuzzleHttp\\Client` will be used as default.\n    new GuzzleHttp\\Client(),\n    $config\n);\n$before = 2020-07-27T17:32:28Z; // \\DateTime | Return results created before provided timestamp\n$limit = 10; // int | Max records to return\n\ntry {\n    $result = $apiInstance-\u003ecallList($before, $limit);\n    print_r($result);\n} catch (Exception $e) {\n    echo 'Exception when calling NFTStorageAPI-\u003ecallList: ', $e-\u003egetMessage(), PHP_EOL;\n}\n\n```\n\n## API Endpoints\n\nAll URIs are relative to *https://api.nft.storage*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*NFTStorageAPI* | [**callList**](docs/Api/NFTStorageAPI.md#calllist) | **GET** / | List all stored files\n*NFTStorageAPI* | [**delete**](docs/Api/NFTStorageAPI.md#delete) | **DELETE** /{cid} | Stop storing the content with the passed CID\n*NFTStorageAPI* | [**status**](docs/Api/NFTStorageAPI.md#status) | **GET** /{cid} | Get information for the stored file CID\n*NFTStorageAPI* | [**store**](docs/Api/NFTStorageAPI.md#store) | **POST** /upload | Store a file\n\n## Models\n\n- [Deal](docs/Model/Deal.md)\n- [DeleteResponse](docs/Model/DeleteResponse.md)\n- [ErrorResponse](docs/Model/ErrorResponse.md)\n- [ErrorResponseError](docs/Model/ErrorResponseError.md)\n- [ForbiddenErrorResponse](docs/Model/ForbiddenErrorResponse.md)\n- [ForbiddenErrorResponseError](docs/Model/ForbiddenErrorResponseError.md)\n- [GetResponse](docs/Model/GetResponse.md)\n- [Links](docs/Model/Links.md)\n- [LinksFile](docs/Model/LinksFile.md)\n- [ListResponse](docs/Model/ListResponse.md)\n- [NFT](docs/Model/NFT.md)\n- [Pin](docs/Model/Pin.md)\n- [PinStatus](docs/Model/PinStatus.md)\n- [UnauthorizedErrorResponse](docs/Model/UnauthorizedErrorResponse.md)\n- [UnauthorizedErrorResponseError](docs/Model/UnauthorizedErrorResponseError.md)\n- [UploadResponse](docs/Model/UploadResponse.md)\n\n## Authorization\n\n### bearerAuth\n\n- **Type**: Bearer authentication (JWT)\n\n## Tests\n\nTo run the tests, use:\n\n```bash\ncomposer install\nvendor/bin/phpunit\n```\n\n## Author\n\n\n\n## About this package\n\nThis PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: `1.0`\n- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnftstorage%2Fphp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnftstorage%2Fphp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnftstorage%2Fphp-client/lists"}