承接 weboptic/podfather-laravel 相关项目开发

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

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

weboptic/podfather-laravel

最新稳定版本:1.0.2

Composer 安装命令:

composer require weboptic/podfather-laravel

包简介

A Laravel wrapper for the Podfather API

README 文档

README

A clean, fluent, and strictly-typed Laravel wrapper for the Podfather API (v1.3.0).

Built for modern PHP 8.3+ and Laravel 10/11+, this package takes the heavy lifting out of connecting your application to the Podfather system.

Requirements

  • PHP 8.3 or higher
  • Laravel 10.0 or 11.0+

Installation

You can install the package via composer:

composer require your-vendor/podfather-laravel

Publish the configuration file using:

php artisan vendor:publish --provider="Podfather\PodfatherServiceProvider" --tag="config"

Configuration

Add your Podfather API credentials to your application's .env file. You can request an API key from your Podfather account manager.

PODFATHER_API_KEY="your_api_key_here"
PODFATHER_BASE_URL="https://external-api.aws.thepodfather.com/v1"

Usage

This package provides a highly readable Facade (Podfather) that dynamically routes to the various API resources.

All HTTP methods return a strictly-typed array containing the JSON response from Podfather. If the API returns an HTTP error (404, 500, etc.), an Illuminate\Http\Client\RequestException will be thrown.

Basic Examples

use Podfather\Facades\Podfather;

// Get Account Info
$account = Podfather::account()->get();

// Fetch paginated jobs
$jobs = Podfather::jobs()->get(['page' => 1]);

// Find a specific job by ID
$singleJob = Podfather::jobs()->find(12345);

// Create a new Vehicle
$newVehicle = Podfather::vehicles()->create([
    "vehicleRegistration" => "BD51 SMR",
    "active" => true,
    "depot" => 123
]);

// Delete a driver
Podfather::drivers()->delete(456);

Available Resources

The following resources are mapped and available as chainable methods on the Facade:

  • Podfather::account()
  • Podfather::customers()
  • Podfather::depots()
  • Podfather::drivers()
  • Podfather::jobs()
  • Podfather::pods()
    • Additional methods: ->pdf($podId), ->images($podId), ->signatures($podId)
  • Podfather::runs()
    • Additional methods: ->release($runId)
  • Podfather::sites()
  • Podfather::templates()
  • Podfather::vehicles()

Testing

This package is fully tested using Pest PHP and Orchestra Testbench.

To run the test suite:

composer test
# or
./vendor/bin/pest

License

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固