Download the PHP package moderntribe/square1-generators without Composer

On this page you can find all versions of the php package moderntribe/square1-generators. 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 square1-generators

Square One Generator

A code generator utility to automate some of the repetitive tasks of building out a project with Square One. The WP CLI commands provided by this package will create stub files to set you on the right path for your custom work.

Component Generator

Generates the assorted files required for a theme component.

Example usage:

This will create six files for you in the theme:

The template (link.php) and the Controller class (Link_Controller.php) will be stubbed out with common properties.

Use --no-template to skip the template.

Use --no-controller to skip the Controller class.

Use --no-css to skip the CSS files.

Use --no-js to skip the JS files.

The --dry-run flag will show you the files the command would create, without writing to the file system.

You can use this command to generate components in nested directories. For example, wp s1 generate component content/event ... would create the component in components/content/event. All PHP classes will have their namespaces adjusted to reflect their position in the hierarchy.

Post Type Generator

Generates the files required for a custom post type.

Example usage:

This will create three files for you in the core plugin:

And it will add a reference to the subscriber in Tribe\Project\Core.

Taxonomy Generator

Generates the files required for a custom taxonomy.

Example usage:

wp s1 generate tax classification --post-types="page,post" --single="Classification" --plural="Classifications"

This will create three files for you in the core plugin:

And it will add a reference to the subscriber in Tribe\Project\Core.

Block Generator

Generate the files required to register a new block with ACF.

Example usage:

This will create two files for you in the core plugin:

And create the block template in the theme:

And then delegates to the component generator (see above) to generate the image_gallery component.

The --dry-run flag will show you the files the command would create, without writing to the file system.

Example with Post Loop Field Middleware:

Settings Page Generator

TODO: write documentation for the settings page generator

CLI Command Generator

TODO: write documentation for the CLI command generator

Image Size Generator

Adds an image size to the core plugin's Image_Sizes class.

Example usage:

This will add the constant TEST_SIZE to the Image_Sizes class and add this definition to the $sizes array:


All versions of square1-generators with dependencies

PHP Build Version
Package Version
Requires moderntribe/square1-cli Version ^4.2
moderntribe/square1-container Version ^4.2
php Version >=7.4
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 moderntribe/square1-generators contains the following files

Loading the files please wait ....