Download the PHP package daika7ana/fancourier without Composer

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

FanCourier API Client

A simple FanCourier implementation for Laravel.

Installation

Install the package through Composer.

Run the Composer require command from the Terminal:

composer require daika7ana/fancourier

Now all you have to do is add the service provider of the package and alias the package. To do this open your config/app.php file.

Add a new line to the providers array:

SeniorProgramming\FanCourier\Providers\ApiServiceProvider::class,

And optionally add a new line to the aliases array:

'FanCourier' => SeniorProgramming\FanCourier\Facades\FanCourier::class,

Important, add in .env FanCourier credentials:

Now you're ready to start using the FanCourier API Client in your application.

Overview

Look at one of the following topics to learn more about FanCourier API Clien

Usage

The FanCourier API Client gives you the following methods to use:

FanCourier::city()

Retrieves cities based on county if specificed and other info.

The city() method will return an array of objects with: judet, localitate, agentie, km, cod_rutare, id_localitate_fan.

FanCourier::streets()

Retrieves streets based on county or city if specificed and other info.

The streets() method will return an array of objects with: judet, localitate, strada, de_la, pana_la, paritate, cod_postal, tip, cod_cartare, numar_depozite.

FanCourier::price()

Retrieve price based on service, package and distance

The price() method will return a double.

FanCourier::trackAwb()

Track expedition using AWB code.

The trackAwb() method will return a plain text.

FanCourier::generateAwb()

Send orders to generate AWB

The generateAwb() method will return an array of objects with: line, awb, send_params, error_message.

FanCourier::order()

Place a order to a FanCourier Agent. The agent will come a pick-up the package at requested hour, in the same day

The order() method will return a plain message if the request is made successfully

FanCourier::exportAwbErrors()

All FanCourier AWB with errors.

The exportAwbErrors() method will return an empty array or with objects containing: nume, judet, localitate, telefon, plicuri, colete, greutate, descriere.

FanCourier::deleteAwb()

Deletes AWB only if the shipping process is not finished.

The deleteAwb() method will return an int if the request is made successfully or the error message.

FanCourier::getAwb()

Returns documents containing shipping details.

The getAwb() method will return a html page containing documents that can be printed if the request is made successfully or the error message.

FanCourier::downloadAwb()

Returns AWB document in jpg format.

The downloadAwb() method will return a jpg if the request is made successfully or the error message.

FanCourier::exportOrders()

All orders made within selected date through FanCourier::order method.

The exportOrders() method will return an empty array or with objects containing: nr._crt., data_ridicare_comanda, ora_de_la, ora_pana_la, persoana_contact, telefon, email, colete, numar_comanda, status.

FanCourier::exportBorderou()

All orders made within selected date through FanCourier::generateAwb method.

The exportBorderou() method will return an empty array or with objects containing: nr._crt., awb, ridicat, status, data_confirmarii, restituire, tip_serviciu, continut...

FanCourier::exportReports()

Returns all expeditions that have placed the total amount in the deposit account within selected date for the bank transfer.

The exportReports() method will return an empty array or with objects containing: oras_destinatar, dat_awb, suma_incasata, numar_awb, numar_awb, expeditor, destinatar, continut, persoanaD, data_virament, persoanaE, ramburs_la_awb, awb_retur

FanCourier::exportObservations()

Returns all observations that can be set when an expedition is requested.

The exportObservations() method will return an empty array or with objects containing: observatii_fan_courier

FanCourier::endBorderou()

Will close all orders made for the current date.

The endBorderou() method will return a html

Exceptions

The FanCourier package will throw exceptions if something goes wrong. This way it's easier to debug your code using the FanCourier package or to handle the error based on the type of exceptions. The FanCourier packages can throw the following exceptions:

Exception
FanCourierInstanceException
FanCourierInvalidParamException
FanCourierUnknownModelException

Example

FanCourier::city() To fetch specific county

or to fetch all counties

FanCourier::streets() To fetch specific county

or to fetch all streets from Romania

FanCourier::price() Internal service

External service

FanCourier::order() Internal service

FanCourier::trackAwb()

FanCourier::order() Internal service

FanCourier::exportServices()

FanCourier::exportAwbErrors()

FanCourier::getAwb()

FanCourier::downloadAwb()

FanCourier::exportOrders()

FanCourier::exportBorderou()

FanCourier::exportReports()

FanCourier::exportObservations()

FanCourier::endBorderou()


All versions of fancourier with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
guzzlehttp/guzzle Version ^6|^7
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 daika7ana/fancourier contains the following files

Loading the files please wait ....