Download the PHP package teppokoivula/admin-bar without Composer

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

AdminBar module for ProcessWire CMS/CMF

This module provides easy front-end admin bar for editing page content in ProcessWire.

Credits

This module was originally developed by @apeisa, with additional development by Teppo Koivula. Credits for the bundled themes:

SVG loading icon (loading.svg) is from https://github.com/n3r4zzurr0/svg-spinners, copyright Utkarsh Verma and licensed under The MIT License (MIT).

Installing the module

This module can be installed just like any other ProcessWire module: copy or clone the directory containing this module to your /site/modules/ directory, log in, go to Admin > Modules, click "Check for new modules", and install "AdminBar".

Alternatively you can use the module installer in ProcessWire's Admin or Composer to install this module. The module is available via Packagist for Composer installation as teppokoivula/admin-bar.

Requirements

If you're running an earlier version of ProcessWire or PHP, you can use the 1.1.5 release of this module instead. Note, though, that 1.x branch of the module is no longer supported, and as such it may not work as expected, and will lack some of the features available via the 2.x branch.

Permissions

By default AdminBar is visible only for superusers only. If you want to grant non-superusers access to AdminBar, please add permission "adminbar" to their role(s).

If you are upgrading from an older version of AdminBar, you may need to uninstall and then reinstall the module in order to see that permission. Alternatively you can add this permission manually: just provide "adminbar" as the name of the permission (the label doesn't really matter).

Themes

AdminBar comes with a selection of built-in themes. You can change the theme via module config, and if you want you can also create a custom theme of your own:

  1. Create directory for your custom theme anywhere under your site directory. This directory should contain at least theme.css file, but you can also include theme.js, theme.php, and config.php.

    For examples on how theme files work, check out the uikit theme, found from the /themes/uikit/ directory within the AdminBar directory.

  2. Select "Custom ..." option for theme in module config.
  3. Type into the "Custom theme" text input the path to the directory your custom theme's files are located in. This path should be relative to (start from) your site directory.

Hooks

As with any ProcessWire module, you can identify hookable methods by the three underscores before the method name: ___hookableMethod(). Here are the details for most common hookable methods in the AdminBar module/class:

Frontend utilities

You can use the data-adminbar-adjust attribute to control behaviour of frontend elements while Admin Bar is enabled/displayed. This attribute should contain a space-separated list of CSS properties that should be modified when Admin Bar height is recalculated.

Example and supported values:

Adjustments are applied as inline CSS styles. Assuming that the height of the Admin Bar was 100px at the time of calculation, the example above would result in...

By default your main content container is assumed to be document root and Admin Bar will automatically add top padding to this element to make space for itself. In some cases content may live within another full height container, in which case you may prefer to adjust the padding of that element instead. This can be achieved by adding the data-adminbar-content attribute to said element:

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

(See included LICENSE file for full license text.)


All versions of admin-bar with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
processwire/processwire Version >=3.0.112
wireframe-framework/processwire-composer-installer Version ^1.0.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 teppokoivula/admin-bar contains the following files

Loading the files please wait ....