承接 enflow/redirect-pizza-php-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

enflow/redirect-pizza-php-sdk

最新稳定版本:2.5.0

Composer 安装命令:

composer require enflow/redirect-pizza-php-sdk

包简介

An SDK to easily work with the redirect.pizza API

README 文档

README

redirect.pizza

Latest Version on Packagist GitHub Workflow Status Software License Total Downloads

Installation

composer require enflow/redirect-pizza-php-sdk

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

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

Credits

This package uses code from and is greatly inspired by the OhDear PHP SDK by Freek van der Herten and Mattias Geniar, which is based on Forge SDK package by Mohammed Said.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-07