arkitecht/fedex-laravel
Larablocks Analysis
arkitecht/fedex-laravel works with Laravel 5 (latest release 1.0.1, Oct 23, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Oct 23, 2016)
- 0 downloads a month (needs 10,000)
- 7 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Oct 23, 2016.
- No releases in the last 12 months.
- First released: Apr 26, 2016.
- 6 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require arkitecht/fedex-laravel |
|
| Latest Version: | 1.0.1 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Jun 1, 2022 |
| Links: | GitHub · Packagist |
FedEx Laravel
A service provider to integrate FedEx services into your Laravel Project
Quick Installation
You can install the package most easily through composer
Laravel 5.x
composer require arkitecht/fedex-laravel
Using it in your project
Add the service provider to your config/app.php
<?php
...
'providers' => [
/*
* Laravel Framework Service Providers...
*/
//Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
...
Arkitecht\FedEx\Laravel\Providers\FedExServiceProvider::class,
],
?>
Add the Facade to your config/app.php
<?php
...
'aliases' => [
'FedEx' => Arkitecht\FedEx\Laravel\Facades\FedEx::class
],
?>
Publish the config file
artisan vendor:publish
Set up your environment
Add values for the following setting keys in your .env or in config/fedex.php
- FEDEX_API_KEY - Your FedEx API Key
- FEDEX_API_PASSWORD - Your FedEx API Password
- FEDEX_ACCOUNT_NO - Your FedEx Account Number
- FEDEX_METER_NO - Your FedEx Meter Number
- FEDEX_USE_BETA - (Bool) Use the FedEx beta/test system instead of production
Example of Usage
Get FedEx Rates
<?php
$rateRequest = FedEx::rateRequest();
$shipment = new \Arkitecht\FedEx\Structs\RequestedShipment();
$shipment->TotalWeight = new \Arkitecht\FedEx\Structs\Weight(\Arkitecht\FedEx\Enums\WeightUnits::VALUE_LB, $weight);
$shipment->Shipper = new \Arkitecht\FedEx\Structs\Party();
$shipment->Shipper->Address = new \Arkitecht\FedEx\Structs\Address(
$shipper->address,
$shipper->city,
$shipper->state,
$shipper->zip,
null, 'US');
$shipment->Recipient = new \Arkitecht\FedEx\Structs\Party();
$shipment->Recipient->Address = new \Arkitecht\FedEx\Structs\Address(
$recipient->address,
$recipient->city,
$recipient->state,
$recipient->zip,
null, 'US');
$lineItem = new \Arkitecht\FedEx\Structs\RequestedPackageLineItem();
$lineItem->Weight = new \Arkitecht\FedEx\Structs\Weight(\Arkitecht\FedEx\Enums\WeightUnits::VALUE_LB, $weight);
$lineItem->GroupPackageCount = 1;
$shipment->PackageCount = 1;
$shipment->RequestedPackageLineItems = [
$lineItem
];
$rateRequest->Version = FedEx::rateService()->version;
$rateRequest->setRequestedShipment($shipment);
$rate = FedEx::rateService();
$response = $rate->getRates($rateRequest);
$rates = [];
if ($response->HighestSeverity == 'SUCCESS') {
foreach ($response->RateReplyDetails as $rate) {
$rates[$rate->ServiceType] = $rate->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount;
}
}
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 1.0.1 | ^5.0 | MIT | |
| 1.0 | 5.0 - 5.2 | MIT |