Download the PHP package mehrshaddarzi/wp-cli-trait-command without Composer

On this page you can find all versions of the php package mehrshaddarzi/wp-cli-trait-command. 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 wp-cli-trait-command

WP-CLI Trait Package Command

Packagist Packagist Version GitHub repo size

Generate plugin or php model files e.g. post-type or taxonomy for WP-Trait Package in Develop WordPress Plugin.

Installation

You can install this package with:

Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with wp cli update.

Structure

Generate Plugin

Use This Command:

And fill Your Plugin information e.g. slug and namespace:

Make PHP Model

Create php model:

Notice: To execute the command to create a model or post-type, you must change the directory of your terminal address from the WordPress root to the plugin folder. for example first run cd wp-content/plugins/my-plugin command and then run wp trait make

Create Model With Class Name:

Create Model With Nested Namespace:

Create Model With Custom global Variable in Plugin:

Make WordPress Post Type

Make a new post-type in WordPress:

Create A new Post Type With City slug:

After created You can change register_post_type argument in main plugin files.

Create a new Post Type With Nested NameSpace:

Make WordPress Taxonomy

Make a new taxonomy in WordPress:

Create A new Taxonomy With Country slug:

After create You can change register_taxonomy argument in main plugin files.

Create a new Taxonomy With Nested NameSpace and Custom name:

Add or Remove Package

List Of Trait Package

package description
ide-helper Create WP-Trait method helper for developer in IDE software e.g. PHPStorm
cmb2 Add CMB2 Framework to your plugin

Author

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed. Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:

  1. Create a feature branch for each contribution.
  2. Submit your pull request early for feedback.
  3. Follow PSR-2 Coding Standards.

All versions of wp-cli-trait-command with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0 || ^8.0
wp-packagist/wp-cli-helper Version >=1.0.2
ext-json Version *
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 mehrshaddarzi/wp-cli-trait-command contains the following files

Loading the files please wait ....