Download the PHP package fishingboy/codeigniter-seeder without Composer

On this page you can find all versions of the php package fishingboy/codeigniter-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 codeigniter-seeder

CodeIgniter Seeder for PHP Database Seeding

Packagist Version Downloads

A small CodeIgniter seeder package for creating repeatable database seed scripts that can be listed and executed from the command line.

Language

en-us / zh-tw

Why This Package?

CodeIgniter does not include a Laravel-style database seeder workflow by default. This package provides a lightweight seeder controller and base class so existing CodeIgniter applications can seed development data, lookup tables, roles, settings, and demo records with predictable CLI commands.

It is intentionally small: seed files are plain PHP classes, database writes use CodeIgniter's existing database layer, and the runner can be added to an existing project with minimal setup.

Features

Installation

Quick Start

1. Create the seeder controller

Create application/controllers/Seeder.php:

2. Create the seeders directory

Create this directory in your CodeIgniter application:

3. Create a sample seeder

Create application/seeders/Sample_seeder.php:

4. Run the seeder

Example output:

Commands

Example list output:

Real World Example

Use seeders for stable data that must exist across local, staging, or test environments.

Run it with:

Seeder Naming Rules

Comparison

Approach Best for Trade-off
Codeigniter-Seeder Repeatable seed data in existing CodeIgniter projects Requires adding a seeder controller
CodeIgniter migrations Schema changes and database versioning Not focused on data seeding
One-off SQL files Manual imports or production handoff Harder to reuse, order, and review in PHP code
Custom CLI scripts Highly specific project workflows More code to maintain

FAQ

Does this package replace CodeIgniter migrations?

No. Migrations are better for schema changes. This package is for inserting or preparing data such as users, roles, permissions, settings, lookup tables, and demo records.

Can I run only one seeder?

Yes. Pass the seeder class name:

How is execution order controlled?

Set the public $priority property on each seeder. Higher values run first.

Can seeders use CodeIgniter models, libraries, and the database object?

Yes. Seeders have access to the CodeIgniter instance through $this->CI, so you can use $this->CI->db, load models, or call existing application services.

Is browser access allowed?

The controller is intended for CLI usage. Browser access is limited to local, private network, or development environments by the controller.

Keywords

CodeIgniter seeder, CodeIgniter database seeding, PHP seeder, CodeIgniter seed data, CodeIgniter CLI seeder, database fixtures, PHP database seed script.

License

CodeIgniter-Seeder is open-sourced software licensed under the MIT license.


All versions of codeigniter-seeder 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 fishingboy/codeigniter-seeder contains the following files

Loading the files please wait ...