Download the PHP package studioespresso/craft-seeder without Composer

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

Seeder plugin for Craft CMS 3.x

Usage

Seeder allows you to quickly create dummy entries through the command line. And you can just as easily remove the dummy data when you're done building the site. With the plugin installed, running ./craft help seeder/generate will show you which commands are available

Since the plugin is only usefull during the development and not on a live site, charging money for it would be stupid (you could just free trial it every time). Instead you can download it for free and if you want to support future development, you can support it on beerpay.io. Thanks!

Beerpay

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require studioespresso/craft-seeder
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for "Seeder".

Usage

Entries (Section ID/handle, siteId, count)

Use the command below, followed by the --section option and the --number of entries you want to create (defaults to 20 if ommited). This command works with both section ID and handle.

You can also add a siteId parameter to seed entries for a specific site. This will use the default site as a fallback.

Categories (Category group ID/handle, count)

Users (Usergroup ID/handle, count)

Clean up

Once you're done building out the site, the plugin gives you an easy way to remove the dummy data (entries, assets, categories and users). This can be done through the CP (click the Seeder section the sidebar) or through the command line with the following command:

Configuration options

eachMatrixBlock - Seed all blocktypes in a matrix field

For a matrix, the plugin will get a random set of block types within the minimum & maximum amounts of blocks the field allows.

With this setting set to true, we'll generate a block of each blocktype once in a random order. This is a good way to test pagebuilder/contentbuilder-like fields.

useLocalAssets - Use assets already in your site to seed asset fields

``

Add the array above to config/seeder.php to seed using assets from volume 1 and folder test/.

fields - Basic field configuration

``

These are some basic examples of how you can defined seeding settings per field. The field handle should be the key in the array and the options are available right now:

Troubleshooting

The most common problem with the plugins is getting the following error: ` If you have the plugin installed in the CP and are seeing this message, craft can not connect to your database through the command line. Your site probably works correctly but CLI commands won't.

If you're running MAMP/XAMP, you should use 127.0.0.1 as hostname instead of localhost.

Roadmap

Core elements

Core fields

Plugin elements

Plugin fields


All versions of craft-seeder with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.1.0
fzaninotto/faker Version ^1.7.0
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 studioespresso/craft-seeder contains the following files

Loading the files please wait ....