Download the PHP package irando/country-codes without Composer

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

Country Codes

This is a Composer plugin that provides an automated version of Country Codes database.

This database is include: country iso codes, country names, country names with phone codes, phone codes as well as admin page to manage your list of data.

What you can do?

Usage of this package are vary, those were just small examples of what you can do.

Also my main reason to build this package was to send WhatsApp message (specifically OTP codes).

Table Of Contents

Requirements

Source Version
Composer ^2.0
PHP ^7.4/^8.0 /^8.2

Installation

The only thing you need to do to make this work is adding this package as a dependency to your project:

Usage

  1. Add following line in your config/app.php file

  2. Run either of commands below to publish package files

And select id referred to:

OR

  1. Run php artisan migrate to add countries table into your database
  2. Run php artisan db:seed --class=CountryCodesTableSeeder to seed countries data into countries table.

Note: In case of error after this command run composer dumpautoload and try again to seed database

Now visit your_url.tld/country-codes and you are set.

Customization

If you need (probably you do!) to customize the look, routing, functionality etc. of this package, at stage 2 of installation we deployed CountryCodes.php which is your table model, as well as view files at resources/views/vendor/irando/country-codes you can edit those files and create your own.

Contributing

All feedback / bug reports / pull requests are welcome.

You can support me for more open source projects by sponsoring this package

License

This code is released under the MIT license.

For the full copyright and license information, please view the LICENSE file distributed with this source code.

Developed by Robert Nicjoo at CV. IRANDO


All versions of country-codes with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0 || ^8.0 || ^8.1 || ^8.2
illuminate/support Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/view Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
guzzlehttp/guzzle Version ^6.2|^7.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 irando/country-codes contains the following files

Loading the files please wait ....