Download the PHP package altwebdesign/sameday-php-sdk without Composer

On this page you can find all versions of the php package altwebdesign/sameday-php-sdk. 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 sameday-php-sdk

Sameday Courier SDK for PHP

Build Status Latest Stable Version

This repository contains the open source PHP SDK that allows you to access the Sameday Courier Platform from your PHP app. It was inspired by Facebook PHP-SDK.

This fork adds countryCode support to SamedayGetCountiesRequest and SamedayGetCitiesRequest, and increases the default $countPerPage from 50 to 500. This allows users with a Romanian Sameday account to query geolocation data for other countries (e.g. Hungary) without switching API hosts. Maintained by AltWeb.

Installation

Install this fork with Composer:

This is a fork of sameday-courier/php-sdk with added countryCode support. All original features are preserved.

Usage

Note: This version of the Sameday SDK for PHP requires PHP 5.4 or greater.

Simple example to get available pickup points and services for a client, request a new AWB and download the PDF for it.

Complete documentation, installation instructions, and examples are available here.


Geolocation — Counties & Cities with countryCode Support

This feature is available in this fork: altwebdesign/sameday-php-sdk

By default the Sameday API returns Romanian counties and cities. This fork adds an optional countryCode parameter to both SamedayGetCountiesRequest and SamedayGetCitiesRequest, allowing you to fetch geolocation data for other supported countries (e.g. 'HU' for Hungary) using your existing Romanian account credentials, without needing to switch to a different API host.

Get Counties (PHP)

Get Cities by County (PHP)

Using Setters

You can also set the country code after instantiation:


Laravel Examples

Setup

Get Hungarian Counties (with Cache)

Get Hungarian Cities by County (with Cache)

Tip: Results are cached forever (rememberForever) since county and city data rarely changes. Use a versioned cache key (e.g. sameday_counties_hu_v2) if you ever need to bust the cache manually.

Pagination Note

This fork increases the default $countPerPage from 50 to 500 in SamedayRequestPaginationTrait. This ensures all cities in a county are returned in a single API call, which is important for countries like Hungary where some counties have more than 50 cities.


Tests

  1. Composer is a prerequisite for running the tests. Install composer globally, then run composer install to install required files.
  2. The tests can be executed by running this command from the root directory:

Contributing

Please see CONTRIBUTING for details.

License

Please see the license file for more information.


All versions of sameday-php-sdk with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
php Version ^5.6|^7.0|^8.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 altwebdesign/sameday-php-sdk contains the following files

Loading the files please wait ...