Download the PHP package underpin/admin-page-loader without Composer

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

Underpin Admin Page Loader

Loader That assists with adding admin pages to a WordPress website.

Installation

Using Composer

composer require underpin/admin-page-loader

Manually

This plugin uses a built-in autoloader, so as long as it is required before Underpin, it should work as-expected.

require_once(__DIR__ . '/underpin-admin-pages/admin-pages.php');

Setup

  1. Install Underpin. See Underpin Docs
  2. Register new admin Pages as-needed.

Basic Example

A very basic example could look something like this. This example would display a single text field on a settings page, and handle field saving using Underpin's fields API.

Multiple Sections

The admin screen is broken into sections. This makes it possible to quickly change the layout of the page into various display types, such as a tabular layout. This example would display all of the sections on a single page.

Sections as Tabs

To change the display to use tabs, simply set the type argument to tabs.

Customizing Templates

By default, layouts are intentionally built to match WordPress. The intent is to provide a fast way to build Admin pages, something that is typically a time-consuming task. There are many ways to extend how this page behaves, however.

Option 1: Create Custom Settings Fields

All of the field rendering happens inside Setting_Field::place. In-other words, if you create a custom Setting Field, it is possible to create a custom template for a field, and customize how that field behaves when it is saved.

Option 2: Extend Admin_Page to include custom layouts

Another option is to extend the relevant functions in Admin_Page with your own behavior. By doing so, you will be able to create your own template files that can be used instead of the defaults.

It's not shown here, but you could also extend pretty much everything, including how options are saved, and where things get saved.

You could then use this factory just like you would normally, only now you must specify the class to use instead of the default.


All versions of admin-page-loader with dependencies

PHP Build Version
Package Version
Requires underpin/option-loader Version ^1.0
underpin/underpin 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 underpin/admin-page-loader contains the following files

Loading the files please wait ....