Download the PHP package rlorenzo/mago-wordpress without Composer

On this page you can find all versions of the php package rlorenzo/mago-wordpress. 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 mago-wordpress

mago-wordpress

CI Packagist version Packagist downloads Mago 1.47+

WordPress Coding Standards for Mago. This extension ports the WPCS lint sniffs to Mago's linter, so a plugin or theme is checked in seconds, not minutes.

2–12× faster than phpcs

8.1× faster overall on the top 10 WordPress.org plugins plus WordPress core. Method and numbers: Benchmarks.

Install

Run mago lint. You get this package's 52 default rules, Mago's own WordPress security rules and a WordPress formatter preset.

The worker runs as PHP inside your project and loads its Composer autoloader, like PHPUnit or PHPStan, so only lint projects you trust.

Configure

Settings go in composer.json:

All settings: Configuration.

Migrate from phpcs

It also lists anything it couldn't carry over. See Migrating from phpcs.

Format

mago format can't add the spaces WordPress puts inside parentheses, so a lint fix adds them afterwards. Always run the three steps together, because mago format removes the spaces again:

See Formatting.

Docs

Development

Rule tests run a real Mago worker against tests/corpus/rules/<rule>/. Each expected report is marked with // @mago-expect lint:wordpress/<rule> on the line before it, and any report without a matching expectation fails. CI runs just check on PHP 8.1, 8.4 and 8.5.

Credits

Generic syntax helpers are adapted from amateescu/mago-drupal (MIT) and the rule data from WordPress Coding Standards (MIT); see NOTICE.md. The rules were first written in Rust for the Mago fork at rlorenzo/mago and ported here after Mago gained worker extensions.


All versions of mago-wordpress with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-dom Version *
ext-libxml Version *
ext-tokenizer Version *
carthage-software/mago Version ^1.47.1
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 rlorenzo/mago-wordpress contains the following files

Loading the files please wait ...