{"id":22278027,"url":"https://github.com/enflow/redirect-pizza-php-sdk","last_synced_at":"2025-07-28T18:30:33.227Z","repository":{"id":54769047,"uuid":"143849917","full_name":"enflow/redirect-pizza-php-sdk","owner":"enflow","description":"An SDK written in PHP to work with redirect.pizza","archived":false,"fork":false,"pushed_at":"2025-02-22T20:05:13.000Z","size":42,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T11:47:50.219Z","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/enflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://redirect.pizza/pricing"}},"created_at":"2018-08-07T09:22:17.000Z","updated_at":"2025-02-22T20:04:59.000Z","dependencies_parsed_at":"2023-01-21T05:17:22.391Z","dependency_job_id":null,"html_url":"https://github.com/enflow/redirect-pizza-php-sdk","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/enflow/redirect-pizza-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fredirect-pizza-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fredirect-pizza-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fredirect-pizza-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fredirect-pizza-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enflow","download_url":"https://codeload.github.com/enflow/redirect-pizza-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fredirect-pizza-php-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267563486,"owners_count":24108097,"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-07-28T02:00:09.689Z","response_time":68,"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-12-03T15:12:38.406Z","updated_at":"2025-07-28T18:30:32.935Z","avatar_url":"https://github.com/enflow.png","language":"PHP","funding_links":["https://redirect.pizza/pricing"],"categories":[],"sub_categories":[],"readme":"# SDK to easily work with the redirect.pizza API\n\n[![redirect.pizza](https://redirect.pizza/favicons/open-graph.png)](https://redirect.pizza?ref=github)\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/enflow/redirect-pizza-php-sdk.svg?style=flat-square)](https://packagist.org/packages/enflow/redirect-pizza-php-sdk)\n![GitHub Workflow Status](https://github.com/enflow/redirect-pizza-php-sdk/workflows/run-tests/badge.svg)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/enflow/redirect-pizza-php-sdk.svg?style=flat-square)](https://packagist.org/packages/enflow/redirect-pizza-php-sdk)\n\n## Installation\n\n```composer require enflow/redirect-pizza-php-sdk```\n\n## Usage\n\n```php\n$apiToken = 'rpa_XXXXXXXXXXXXXXXXXXX'; // You can find this token on https://redirect.pizza/api\n\n$redirectPizza = new \\RedirectPizza\\PhpSdk\\RedirectPizza($apiToken);\n\n// List all redirects\n$redirectPizza-\u003eredirects();\n\n// Create redirect\n$redirect = $redirectPizza-\u003ecreateRedirect([\n    'sources' =\u003e ['old-source.nl'],\n    'destination' =\u003e 'new-fancy-site.nl',\n    'redirect_type' =\u003e 'permanent',\n    'keep_query_string' =\u003e false,\n]);\n\n// Fetch redirect\n$redirectPizza-\u003eredirect($redirect-\u003eid);\n\n// Update redirect\n$redirect-\u003eupdate([\n    'sources' =\u003e ['old-source.nl'],\n    'destination' =\u003e 'new-fancy-site-v2.nl',\n    'redirect_type' =\u003e 'permanent',\n    'keep_query_string' =\u003e true,\n]);\n\n// Delete the redirect\n$redirect-\u003edelete();\n```\n\n## Security\n\nIf you discover any security related issues, please email support@redirect.pizza instead of using the issue tracker.\n\n## Credits\n\n- [Michel Bardelmeijer](https://github.com/mbardelmeijer)\n- [All Contributors](../../contributors)\n\nThis package uses code from and is greatly inspired by the [OhDear PHP SDK](https://github.com/ohdearapp/ohdear-php-sdk) by [Freek van der Herten](https://github.com/freekmurze) and [Mattias Geniar](https://github.com/mattiasgeniar), which is based on [Forge SDK package](https://github.com/themsaid/forge-sdk) by [Mohammed Said](https://github.com/themsaid).\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Fredirect-pizza-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenflow%2Fredirect-pizza-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Fredirect-pizza-php-sdk/lists"}