PHPackages                             jackbayliss/laravel-parcel2goapi - 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. jackbayliss/laravel-parcel2goapi

AbandonedArchivedLibrary[API Development](/categories/api)

jackbayliss/laravel-parcel2goapi
================================

Parcel 2 Go API wrapper for laravel.

v0.5.1(5y ago)236MITPHPPHP &gt;=5.6.0

Since Feb 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jackbayliss/laravel-parcel2goapi)[ Packagist](https://packagist.org/packages/jackbayliss/laravel-parcel2goapi)[ RSS](/packages/jackbayliss-laravel-parcel2goapi/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel Parcel2GO API
=====================

[](#laravel-parcel2go-api)

\*\* At the moment you can only quote, not book- as I haven't implemented anything else yet. \*\*

Why?
----

[](#why)

- Created for my own personal use, wanted something simple to use for quoting parcels.
- You get around 46 quotes for your one, with all various courier / freight companies- great for customers.

How do I get/use it?
--------------------

[](#how-do-i-getuse-it)

Composer require the package into your laravel project.

```
composer require jackbayliss/laravel-parcel2goapi
```

> Note: If you're using Laravel &gt;= 5.5, you can skip the registration of the service provider, as they are registered automatically. So no need to add it into your providers array.

Then in your config folder, go into your app.php and add the below to the providers array.

```
jackbayliss\Parcel2GoApi\Parcel2GoAPIServiceProvider::class,
```

I would then recommend setting your `client_id`,`client_secret` and `from_address` which can be found in vendor-&gt;jackbayliss-&gt;Config-&gt;config.php

Bare in mind your from address is the country you are sending from, default it is set to the UK (GBR), so France would be FRA, Italy ITA etc.

once these have been set you can then use the API.

If you don't have the above, set up an account [here](https://www.parcel2go.com/login), then create your API credentials by going [here](https://www.parcel2go.com/myaccount/api).

Once you've set your `client_id`,`client_secret` and `from_address` you're ready to use- simply do the below.

```
$parcel = [array("Value" =>150 ,"Weight" =>2, "Length" =>9, "Width" => 8, "Height" => 1)];
$api = new \jackbayliss\Parcel2GoApi\Parcel2GoAPI();
$api->SetToCountry("GBR")->SetParcels($parcel)->GetQuote();
```

If you want to add more than one parcel, you can just do the below

```
$parcels = [
array("Value" =>150 ,"Weight" =>2, "Length" =>9, "Width" => 8, "Height" => 1)
array("Value" =>250 ,"Weight" =>1, "Length" =>3, "Width" => 2, "Height" => 3)
];
$api = new \jackbayliss\Parcel2GoApi\Parcel2GoAPI();
$api->SetToCountry("GBR")->SetParcels($parcels)->GetQuote();
```

Once you've done the above, you can access the quotes given to you by simply doing

```
$api->quotes
```

Or just add it onto the GetQuote method like the below..

```
$api->SetToCountry("GBR")->SetParcels($parcels)->GetQuote()->quotes
```

Authors
-------

[](#authors)

- Jack Bayliss - Initial work

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](https://github.com/jackbayliss/laravel-parcel2goapi/blob/master/LICENSE) file for details

That's all folks 👍

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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 ~514 days

Total

2

Last Release

2174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79e2e2281e64b7800db09d468ce14156b604138636efd6f85c7b6b8d2f0994b7?d=identicon)[jackbayliss](/maintainers/jackbayliss)

---

Top Contributors

[![jackbayliss](https://avatars.githubusercontent.com/u/13621738?v=4)](https://github.com/jackbayliss "jackbayliss (15 commits)")

---

Tags

phplaravelparcel2goparcel2go api

### Embed Badge

![Health badge](/badges/jackbayliss-laravel-parcel2goapi/health.svg)

```
[![Health](https://phpackages.com/badges/jackbayliss-laravel-parcel2goapi/health.svg)](https://phpackages.com/packages/jackbayliss-laravel-parcel2goapi)
```

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162151.8k1](/packages/joisarjignesh-bigbluebutton)[jeroen-g/flickr

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

2562.1k2](/packages/jeroen-g-flickr)[octw/aramex

A Library to integrate with Aramex APIs

2926.2k](/packages/octw-aramex)[exlo89/laravel-sevdesk-api

A helpful Sevdesk API client for Laravel.

1117.7k](/packages/exlo89-laravel-sevdesk-api)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.2k3](/packages/dystcz-lunar-api)[yxx/laravel-quick

agile development

145.5k](/packages/yxx-laravel-quick)

PHPackages © 2026

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