Download the PHP package wisdom-diala/countrypkg-laravel without Composer

On this page you can find all versions of the php package wisdom-diala/countrypkg-laravel. 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 countrypkg-laravel

countrypkg-laravel

package to fetch all countries and states around the world and store in the database

IMPORTANCE OF THE PACKAGE

NO API CALLS: Over the years i have been working with many API's that will help in getting countries with their State/Province, Making an API calls to the endpoint everytime a user visits the site, most of the times slow down the site while getting response from the third party website where the API was hosted. This packages eliminates any API calls of any such, you now have all the countries in your local database by running a simple command.

FEATURES

Generate Countries: This package helps you to generate countries around the world and save it inside your existing or newly created database without hitting any API endpoint.

Generate States: This package helps you to generate states/Province around the world with country ID generated initially when the country table was created. You can also generate State/Province for a particular country by specifying the country name you want to generate for.

USAGE

Install Package

Create database if you don't have any database yet.

Run migration

After running migration, it will create two tables countries and states table

Run this command on your terminal to generate countries

This command will generate all countries around the world with it's country code and short name and save it in the countries table it created earlier.

Run this command on your terminal to generate all states/province

This command generate all states with it's country ID from the country table that was initially created.

To generate states/province for a particular country run this command

This command will generate all states/province in Nigeria.

Publish asset files

This command will publish the country flags images inside public/wisdom_countrypkg/img/country_flags

Using it in your controller

Note: Make sure you import the Country and State Model that was shipped with the package.

That's all, you now have states and countries records in your local database and can use it anytime you want.

Watch the video on how to use the package here: https://youtu.be/7i1epKxxbd8

Countries and states records pulled from this API https://www.universal-tutorial.com/

Note: After installation of the package, you don't need any internet connection to generate the countries and states again.

If you really find this useful please give us a star.


All versions of countrypkg-laravel with dependencies

PHP Build Version
Package Version
No informations.
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 wisdom-diala/countrypkg-laravel contains the following files

Loading the files please wait ....