Download the PHP package ktscript/fedex-rest without Composer

On this page you can find all versions of the php package ktscript/fedex-rest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fedex-rest

FedEx REST API

PHP package for integrating with FedEx REST API. This package provides a simple and intuitive interface for working with FedEx services including tracking, shipping, and address validation.

Features

Requirements

Installation

Install the package via Composer:

Configuration

Getting FedEx API Credentials

  1. Register for a FedEx Developer account at FedEx Developer Portal
  2. Create a new application to get your client_id and client_secret
  3. Choose between sandbox (testing) or production environment

Usage

Authorization

First, you need to obtain an access token using your FedEx credentials:

Tracking Packages

Track one or multiple packages by tracking number:

Creating Shipping Labels

Create shipping labels for packages:

Address Validation

Validate addresses using FedEx address validation service:

Location Search (FedEx Location API)

Search for FedEx pickup and dropoff locations by address, coordinates, or phone:

The response is a decoded object. Main keys:

Environment Switching

The package supports easy switching between sandbox (testing) and production environments:

Raw Response

Get raw HTTP response instead of decoded JSON:

Available Service Types

Use constants from FedexRest\Services\Ship\Type\ServiceType:

Available Packaging Types

Use constants from FedexRest\Services\Ship\Type\PackagingType:

Available Pickup Types

Use constants from FedexRest\Services\Ship\Type\PickupType:

Exception Handling

The package throws specific exceptions for missing required data:

Advanced Usage

Custom Request Parameters

For shipping labels, you can customize request parameters:

Laravel Integration

This package works seamlessly with Laravel 7-12+. The switchableEnv trait uses Laravel's Conditionable trait, allowing you to use the when() method:

Support

For issues, questions, or contributions, please visit:

License

This package is open-sourced software licensed under the MIT license.

Credits

Special thanks to Sinnbeck for the help and contributions.

Changelog

1.2.1-1.2.5

1.2.0

1.0.0


All versions of fedex-rest with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
ext-json Version *
guzzlehttp/guzzle Version ^6|^7
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ktscript/fedex-rest contains the following files

Loading the files please wait ...