PHPackages                             enflow/redirect-pizza-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. enflow/redirect-pizza-php-sdk

ActiveLibrary[API Development](/categories/api)

enflow/redirect-pizza-php-sdk
=============================

An SDK to easily work with the redirect.pizza API

2.5.0(1y ago)151.4k1MITPHPPHP ^8.3CI passing

Since Aug 7Pushed 1y ago2 watchersCompare

[ Source](https://github.com/enflow/redirect-pizza-php-sdk)[ Packagist](https://packagist.org/packages/enflow/redirect-pizza-php-sdk)[ Docs](https://github.com/enflow/redirect-pizza-php-sdk)[ Fund](https://redirect.pizza/pricing)[ RSS](/packages/enflow-redirect-pizza-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

SDK to easily work with the redirect.pizza API
==============================================

[](#sdk-to-easily-work-with-the-redirectpizza-api)

[![redirect.pizza](https://camo.githubusercontent.com/0e7c2dbb5e9bddddc619ad9c0b81bfb922b1900521579f29d01307ce21348044/68747470733a2f2f72656469726563742e70697a7a612f66617669636f6e732f6f70656e2d67726170682e706e67)](https://redirect.pizza?ref=github)

[![Latest Version on Packagist](https://camo.githubusercontent.com/13a6675f27eb3bbe537767f19c5ea33c1921895a7fed4a2669b0557833de2e24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e666c6f772f72656469726563742d70697a7a612d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/redirect-pizza-php-sdk)[![GitHub Workflow Status](https://github.com/enflow/redirect-pizza-php-sdk/workflows/run-tests/badge.svg)](https://github.com/enflow/redirect-pizza-php-sdk/workflows/run-tests/badge.svg)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/72ccc71de1c47a30822c46317cacd1df2f4c241114030dc1f89659ef473538bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e666c6f772f72656469726563742d70697a7a612d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/redirect-pizza-php-sdk)

Installation
------------

[](#installation)

`composer require enflow/redirect-pizza-php-sdk`

Usage
-----

[](#usage)

```
$apiToken = 'rpa_XXXXXXXXXXXXXXXXXXX'; // You can find this token on https://redirect.pizza/api

$redirectPizza = new \RedirectPizza\PhpSdk\RedirectPizza($apiToken);

// List all redirects
$redirectPizza->redirects();

// Create redirect
$redirect = $redirectPizza->createRedirect([
    'sources' => ['old-source.nl'],
    'destination' => 'new-fancy-site.nl',
    'redirect_type' => 'permanent',
    'keep_query_string' => false,
]);

// Fetch redirect
$redirectPizza->redirect($redirect->id);

// Update redirect
$redirect->update([
    'sources' => ['old-source.nl'],
    'destination' => 'new-fancy-site-v2.nl',
    'redirect_type' => 'permanent',
    'keep_query_string' => true,
]);

// Delete the redirect
$redirect->delete();
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Michel Bardelmeijer](https://github.com/mbardelmeijer)
- [All Contributors](../../contributors)

This 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).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance46

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~239 days

Recently: every ~211 days

Total

11

Last Release

440d ago

Major Versions

0.2 → 1.02020-09-29

1.1 → 2.0.02022-10-26

PHP version history (6 changes)0.1.0PHP ^7.2

0.1.1PHP ^7.0

1.1PHP ^7.4|^8.0

2.0.0PHP ^8.1

2.4.0PHP ^8.2

2.5.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/665ee1919e7c3d12f556cb913d0012a632271f912dc9c3250b7da67d7f3f4b16?d=identicon)[enflow](/maintainers/enflow)

---

Top Contributors

[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (47 commits)")

---

Tags

apisdkredirect.pizza

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/enflow-redirect-pizza-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/enflow-redirect-pizza-php-sdk/health.svg)](https://phpackages.com/packages/enflow-redirect-pizza-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M467](/packages/saloonphp-saloon)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M23](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
