PHPackages                             emran-alhaddad/statamic-dummy-data - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. emran-alhaddad/statamic-dummy-data

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

emran-alhaddad/statamic-dummy-data
==================================

A Statamic addon to inject dummy data into collections and taxonomies

v1.0.2(1y ago)1791[1 issues](https://github.com/emran-alhaddad/statamic-dummy-data/issues)MITPHPPHP ^7.4|^8.0

Since May 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/emran-alhaddad/statamic-dummy-data)[ Packagist](https://packagist.org/packages/emran-alhaddad/statamic-dummy-data)[ Docs](https://statamic.com/addons/emran-alhaddad/statamic-dummy-data)[ RSS](/packages/emran-alhaddad-statamic-dummy-data/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

```
# Dummy Data Addon for Statamic

The Dummy Data addon for Statamic allows you to quickly inject dummy data into your collections and taxonomies. This is useful for testing and development purposes, enabling you to populate your site with sample content effortlessly.

## Features

- Inject dummy data into any collection or taxonomy.
- Specify the number of records or terms to inject.
- Automatically generates data based on the collection or taxonomy structure.

## Installation

To install the Dummy Data addon, use Composer:

```bash
composer require emran-alhaddad/statamic-dummy-data
```
```

Configuration
-------------

[](#configuration)

No additional configuration is required. Once installed, the command is ready to use.

Usage
-----

[](#usage)

To inject dummy data into your collections or taxonomies, use the following Artisan command:

```
php artisan statamic:dummy-data:inject
```

### Injecting Data into a Collection

[](#injecting-data-into-a-collection)

1. Run the command:

    ```
    php artisan statamic:dummy-data:inject
    ```
2. Choose `Collection` when prompted.
3. Select the collection you want to inject data into.
4. Specify the number of records to inject.

### Injecting Data into a Taxonomy

[](#injecting-data-into-a-taxonomy)

1. Run the command:

    ```
    php artisan statamic:dummy-data:inject
    ```
2. Choose `Taxonomy` when prompted.
3. Select the taxonomy you want to inject data into.
4. Specify the number of terms to inject.

Development
-----------

[](#development)

### Directory Structure

[](#directory-structure)

The main files of this addon are located in the `src` directory:

```
src/
├── Commands/
│   └── InjectDummyData.php
└── ServiceProvider.php

```

### Service Provider

[](#service-provider)

The `ServiceProvider.php` registers the Artisan command:

```
