Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"

steps:
- name: Checkout
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Documentation is available at: https://docs.dotkernel.org/dot-data-fixtures/.
## Badges

![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-data-fixtures)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-data-fixtures/1.4.0)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-data-fixtures/1.5.0)

[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-data-fixtures)](https://github.com/dotkernel/dot-data-fixtures/issues)
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-data-fixtures)](https://github.com/dotkernel/dot-data-fixtures/network)
Expand All @@ -34,7 +34,7 @@ This package provides a CLI interface for interacting with doctrine/data-fixture

## Installation

Run the following command in you project directory
Run the following command in your project directory

```shell
composer require dotkernel/dot-data-fixtures
Expand Down Expand Up @@ -91,33 +91,33 @@ ConsoleRunner::run(

## Usage

**List fixtures command** - will list all the available fixtures, by order of execution.
**List fixtures command**: will list all the available fixtures, by order of execution.

````shell
php ./bin/doctrine fixtures:list
````

**Execute fixtures command** - this command will execute all or one fixture.
**Execute fixtures command**: this command will execute one or all fixtures.

To execute all the fixtures run:
To execute all the fixtures, run:

```shell
php ./bin/doctrine fixtures:execute
```

To execute a specific fixture run:
To execute a specific fixture, run:

```shell
php ./bin/doctrine fixtures:execute --class=RoleLoader
```

## Creating fixtures

When creating a new fixture we have 2 requirements:
When creating a new fixture, we have two requirements:

- Fixtures should be created in the folder we configured earlier: `data/doctrine/fixtures`
- Fixtures should implement `FixtureInterface` and have a `load` method.
- Create a new php file and copy the below code-block.
- Create a new PHP file and copy the below code-block.

### Example

Expand Down Expand Up @@ -157,7 +157,7 @@ class RoleLoader implements FixtureInterface

## Ordering fixtures

Fixtures can we ordered using 2 methods :
Fixtures can be ordered:

- by order
- by dependencies
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| Version | Supported | PHP Version |
|---------|--------------------|-------------------------------------------------------------------------------------------------------------------|
| 1.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-data-fixtures/1.0.0) |
| 1.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-data-fixtures/1.5.0) |


## Reporting Potential Security Issues
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"laminas"
],
"require": {
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
"doctrine/data-fixtures": "^2.0",
"doctrine/orm": "^3.0",
"symfony/console": "^7.0"
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v1/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Executing fixtures will append data to the tables.
## Badges

![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-data-fixtures)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-data-fixtures/1.4.0)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-data-fixtures/1.5.0)

[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-data-fixtures)](https://github.com/dotkernel/dot-data-fixtures/issues)
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-data-fixtures)](https://github.com/dotkernel/dot-data-fixtures/network)
Expand Down
8 changes: 4 additions & 4 deletions docs/book/v1/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ php ./bin/doctrine fixtures:list

### Execute fixtures command

This command will execute all or one fixture.
This command will execute one or all fixtures.

To execute all the fixtures, run:

Expand All @@ -28,11 +28,11 @@ php ./bin/doctrine fixtures:execute --class=RoleLoader

## Creating fixtures

When creating a new fixture we have 2 requirements:
When creating a new fixture, we have two requirements:

- Fixtures should be created in the folder we configured earlier, `data/doctrine/fixtures`
- Fixtures should implement `FixtureInterface` and have a `load` method.
- Create a new php file and copy the below code-block.
- Create a new PHP file and copy the below code-block.

### Example

Expand Down Expand Up @@ -70,7 +70,7 @@ class RoleLoader implements FixtureInterface

## Ordering fixtures

Fixtures can we ordered using 2 methods:
Fixtures can be ordered:

- by order
- by dependencies
Expand Down