Download the PHP package cubes-doo/srbija-naselja without Composer

On this page you can find all versions of the php package cubes-doo/srbija-naselja. 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 srbija-naselja

Cubes DOO / Srbija Naselja

Ovaj paket pruža osnovnu bazu naselja u Srbiji.

Baza naselja je napravlena na osnovu Wiki stranica sa spiskovima poštanskih brojeva: Списак насељених места у Србији Spisak poštanskih brojeva u Srbiji

Dokumentacija

Instalacija

Instalacija paketa se vrši uobičajno košišćenjem composer-a

Integracija sa Laravel 5 framework-om

Paket dolazi sa "ServiceProvider"-om i "Facade"-om za Laravel 5 framework.

Ukoliko koristite Laravel verzije manje od 5.5 morate da ukljucite service provider direktno u config/app.php

Primeri koriscenja

Celokupno koriscenje paketa se koristi pomicu klase CubesDoo\SrbijaNaselja\SrbijaNaseljaService

Ili ako koristite Laravel, pomocu fasade

Odnosno preko Dependency Injection-a

Kada importujete SrbijaNaselja servis mozete da koristite njegove metode:

SrbijaNaselja::naselja() Dobija se lista naselja tj niz asocijativnih nizova u formatu:

SrbijaNaselja::naselje(11550) Dobija se naselje na osnovu postanskog broja u formatu:

SrbijaNaselja::opstine() Dobija se lista opstina tj niz asocijativnih nizova u formatu:

SrbijaNaselja::opstina(11550) Dobija se opstina na osnovu postanskog broja u formatu:

SrbijaNaselja::okruzi() Dobija se lista okruga tj niz string-ova:

SrbijaNaselja::okrug(11550) Dobija se naziv okruga na osnovu postanskog broja:

Latinica

Po default-u se daju nazivi na cirilici, ukoliko zelte nazive na latinici, pre opisanih metoda pozovite metodu latinica

ili

U Laravel-u ukoliko je podesen jezik na 'sr', service provider ce ucitati 'latinicu'!

Doprinos paketu

Svako je dobrodošao da pomogne usavršavanju paketa.

Baza naselja Republike Srbije

Baza naselja je data u vise formata na latinici i ćirilici u fajlovima:

Fajlovi u CSV formatu se ne koriste već su ubačeni radi eventualnog importa ukoliko ima potrebe.

Sami nazivi i postanski brojevi nisu 100% provereni, neophodna je pomoc contributor-a.

Pokretanje testova

Napisani su PUPUnit testovi za sam servis i za bazu znaja u foldertu tests. Ukoliko menjate spomenute fajlove baze obavezno pokrenite testove!!!

Testovi se pokrecu pomocu komande


All versions of srbija-naselja with dependencies

PHP Build Version
Package Version
Requires php Version ^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 cubes-doo/srbija-naselja contains the following files

Loading the files please wait ....