Download the PHP package oi-lab/oi-laravel-seeds without Composer

On this page you can find all versions of the php package oi-lab/oi-laravel-seeds. 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 oi-laravel-seeds

OI Laravel Seeds

Latest Version on Packagist Total Downloads Tests

A Laravel package to export and import seeders to/from JSON files with intelligent dependency management.

Features

How It Works

  1. Export: The package scans your seeders for those using the ExportableSeeder trait
  2. Dependencies: It resolves dependencies using a topological sort to ensure correct order
  3. Export Data: Each seeder exports its model data to a JSON file in the configured storage path
  4. Import: When importing, dependencies are processed first, then data is upserted using updateOrCreate

Requirements

Installation

Install the package via composer:

The package auto-discovers and registers its service provider — no manual registration required.

Local Development

For local development inside the monorepo, add a path repository to your main project's composer.json:

Publish

Publish the configuration file (optional):

Publish the seeder stubs (optional):

Usage

Creating an Exportable Seeder

Generate a new exportable seeder using the artisan command:

Options:

This will create a seeder class like:

Defining Dependencies

If your seeder depends on other seeders, specify them in the $dependencies property:

Exporting Relations

To export models with their relations, define them in the $exportRelations property:

Then use the --with-relations flag when exporting:

Exporting Data

Export all exportable seeders:

Export a specific seeder:

Importing Data

Import all exportable seeders:

Import a specific seeder:

Customizing Exported Attributes

Override the getExportableAttributes method in your seeder to customize which attributes are exported:

Multiple Models per Seeder

You can export/import multiple models in a single seeder by using arrays:

Custom Unique Keys

Use multiple columns for unique constraints:

Configuration

The configuration file config/oi-laravel-seeds.php allows you to customize:

By default, JSON files are stored in storage/app/private/seeders/. You can change this:

AI Assistant Skills

Install Claude Code / JetBrains Junie skill files and a CLAUDE.md rules section into your app:

See docs/advanced/skills.md for details.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see the License File for more information.

Credits

Olivier Lacombe - Creator and maintainer

Olivier is a Product & Technology Director based in Montpellier, France, with over 20 years of experience innovating in UX/UI and emerging technologies. He specializes in guiding enterprises toward cutting-edge digital solutions, combining user-centered design with continuous optimization and artificial intelligence integration.

Projects & Resources:

Support

For support, please open an issue on the GitHub repository.


All versions of oi-laravel-seeds with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 oi-lab/oi-laravel-seeds contains the following files

Loading the files please wait ...