Download the PHP package pinkcrab/perique-admin-menu without Composer

On this page you can find all versions of the php package pinkcrab/perique-admin-menu. 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 perique-admin-menu

Perique Admin Menu

A module for the Perique Plugin Framework, for rendering and processing Admin Menu Pages with WordPress

Latest Stable Version Total Downloads License PHP Version Require GitHub contributors GitHub issues

WP5.9 [PHP7.4-8.1] TestsWP6.0 [PHP7.4-8.1] TestsWP6.1 [PHP7.4-8.1] TestsWP6.2 [PHP7.4-8.2] Tests

codecov Scrutinizer Code Quality Maintainability

Why?

WordPress admin pages can be added with a simple function, but this can easily lead into messy structural code with includes for templates and the inevitable mixing of logic and presentation in templates.

The Admin Menu module gives full access to Perique DI Container, for more separation of logic and presentation, with the added advantage of all your services being easy to test and reason with.

Requires Perique - for more details please visit our docs. https://perique.info

Setup

Include the module using composer (via CLI)

Once this has been included, we can add the module to Perique and its underlying Middleware will be added to the registration process.

Once the middleware has been included, we can use Page & Group models as part of the usual Registration process

Usage

It is possible to register either a single page or a group of pages.

Group

A page can be used to register a group of pages, that can be registered as a top level menu item, or as a sub menu item of another page.

It is possible to enqueue scripts and styles, explicitly for this group using the enqueue method. This would see those scripts and styles only loaded on the pages within the group.

Please see the group docs for more details.

Page

A page is a single menu item, that can be registered as a top level menu item, or as a sub menu item of another page.

It is possible to enqueue scripts and styles, explicitly for this page using the enqueue method.

You can also trigger a callback on page load, using the load method.

For more details on the Page model, please see the Page docs


Page Form Handling Example

In the above example the page would be use the settings from the Settings service, and if the form has been submitted, it would use the Form_Handler service to handle the form and update the view data.

Example

There is a basic example of how to use this Module as part of a plugin, please see Example Plugin

License

MIT License

http://www.opensource.org/licenses/mit-license.html

Contributions

If you would like to contribute to this or any other Perique module, please feel free to submit a PR with your changes.

All code must be supplied with matching tests and must pass PHPUNIT, PHPStan and PHPCS checks and not see a large drop in coverage.

See composer.json for details on the test and linting commands. composer all is the most important.

Change Log


All versions of perique-admin-menu with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
pinkcrab/perique-framework-core Version 2.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 pinkcrab/perique-admin-menu contains the following files

Loading the files please wait ....