Download the PHP package devcake-deventer/country-seeder without Composer

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

Laravel Country Seeder

Seed Dutch country names and nationalities to a table of your choice

Base seeder

This package comes with a simple base seeder used within most of our projects. It enables us to seed specified tables only in development environments. The default behaviour is to seed the nationalities and/or countries in all environments.

Usage

There are several ways on how to use this package, the default behavior is configured to place all files (migrations, seeders and base seeder) into your project. We also offer solutions to customize the files copied to your project.

  1. Install this package: composer require devcake-deventer/country-seeder
  2. Publish the configuration: php artisan vendor:publish --tag=$required-tag
  3. Change the config as desired
  4. php artisan db:seed

Configurable properties

The configuration sections for countries and nationalities are identical, so only the country version is explained below.

Key Default Description
countries.sync true Indicates if database entries be kept in sync with the seeder (true) or only new entries be inserted (false)
countries.table "countries" Name of the database table
countries.columns.code "code" Name of the code column in the database
countries.columns.name "name" Name of the name column in the database

Available tags

We provide 4 different tags to publish required files to your project.

Tag Description
country-seeder Pulls in all files for seeding nationalities and countries. Including the base seeder
country-seeder-countries Pulls in all the files for seeding countries
country-seeder-nationalities Pulls in all the files for seeding nationalities
base-seeder Only pulls in the base seeder

All versions of country-seeder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
illuminate/database Version ^7.0.0
illuminate/support Version ^7.0.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 devcake-deventer/country-seeder contains the following files

Loading the files please wait ....