{"repo":"CodesVault/wp-seeder","free":true,"listed":false,"github":"https://github.com/CodesVault/wp-seeder","clone":"git clone https://github.com/CodesVault/wp-seeder.git","description":"Database seeder for WordPress","language":"PHP","stars":13,"topics":["database","mysql","mysql-database","seeder","seeders","wordpress","wordpress-php-library"],"license":"MIT","category":"databases-storage","readme_excerpt":"WP Seeder Add demo data in the Database from terminal. Installation It is required to install it using composer composer install codesvault/wp-seeder . It supports PHP = 7.4 Uses To create a new seeder, run below command in the terminal and provide necessary inputs. It will generate /seeders directory in /database directory. Don't move this directory to other location, it must be there. In the /database/seeders folder you will have your seeder which was automatically generated, the file name will be same as the class name that you had given input. Now change the $table property according to your table name where you want to store data. $row property is for number of rows you want to generate in the table. For generating demo data WP Seeder has build-in support of FakerPHP. Here is an example seeder class: If you want to create more seeders for different tables then just repeate the above process. Now just run below command in the terminal from plugin's root directory and data will be stored in the database. .","default_branch":null,"files":null,"tree":[],"storefront":"/r/CodesVault","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CodesVault/wp-seeder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}