Download the PHP package ajtarragona/tsystems-client without Composer

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

Tsystems Laravel Client

Client per serveis de l'ERP de Tsystems (Tercers, Padró, Vialer).

Credits: Ajuntament de Tarragona.

Instalació

Configuració

Pots configurar el paquet a través de l'arxiu .env de l'aplicació. Aquests son els parámetres disponibles :

Alternativament, pots publicar l'arxiu de configuració del paquet amb la comanda:

Això copiarà l'arxiu a config/tsystems.php.

Ús

Un cop configurat, el paquet està a punt per fer-se servir.

Ho pots fer de les següents maneres:

Vía Injecció de dependències:

Als teus controlladors, helpers, model:

Disposem de tres serveis: TsystemsTercers, TsystemsPadro, TsystemsVialer

A través d'una Facade:

Disposem d'una Facade per cada servei: TsystemsTercersService, TsystemsPadroService, TsystemsVialerService , tots al namespace Ajtarragona\Tsystems\Services

Vía funció helper:

Disposem 'un helper per cada servei: ts_tercers(), ts_padro(), ts_vialer()

Funcions

Tercers

Funció Paràmetres Retorn
getPersonByIdNumber id: identificador (DNI) del tercer Un objecte TSPerson
getPersonByDboid id: identificador intern Un objecte Tercer
searchPersons name: nom a buscar
search_type: 1-conté, 2-comença per, 3: acaba en, 4: és igual a
Un array d'objectes TSPerson
createPerson persondata[]: array amb els valors de l'objecte TSPerson Un array d'objectes TSPerson
updatePerson dboid: Id intern del tercer a modificar
persondata[]: array amb els valors de l'objecte TSPerson a modificar

Vialer

Funció Paràmetres Retorn
getCountriesByName name: nom a buscar Un array d'objectes TSCountry
getAllCountries Un array d'objectes TSCountry
getProvinciesByName name: nom a buscar Un array d'objectes TSProvince

Padró

Funció Paràmetres Retorn
getCurrentInstitucion Un objecte TSInstitucion de la institució de l'ajuntament
getInstitucion codigoProvincia*: codi de provincia
codigoMunicipio* codi de municipi
Un objecte TSInstitucion
getHabitanteByDNI dni: dni a buscar Un objecte TSHabitante
getPDFHabitanteByDNI dni: dni a buscar document binari en base64
getHabitantesByDNI dni: dni a buscar Un array d'objectes TSHabitante
getHabitantesByPasaporte pasaporte: pasaporte a buscar Un array d'objectes TSHabitante
getHabitantesByTarjetaResidencia id: codi de la tarjeta de residencia a buscar Un array d'objectes TSHabitante
getHabitantesByNombre nombre: nom a buscar
apellido1: primer cognom
apellido: segon cognom
Un array d'objectes TSHabitante
getNumHabitantesByDNI dni: dni a buscar Un numero enter
getNumHabitantesByPasaporte pasaporte: pasaporte a buscar Un numero enter
getNumHabitantesByTarjetaResidencia id: codi de la tarjeta de residencia a buscar Un numero enter
getNumHabitantesByNombre nombre: nom a buscar
apellido1: primer cognom
apellido: segon cognom
Un numero enter

All versions of tsystems-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3|^8.0
laravel/framework Version >=6.0
jtrumbull/xml-parser Version >=1.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 ajtarragona/tsystems-client contains the following files

Loading the files please wait ....