Download the PHP package arsthanea/page-actions-bundle without Composer

On this page you can find all versions of the php package arsthanea/page-actions-bundle. 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 page-actions-bundle

Page subactions

This bundle enables to mount controllers (or any other routing for that matter) under any Kunstmaan CMS page. In effect, given a /foo/bar page and a /thank-you route, you can access /foo/bar/thank-you and have $page and $nodeTranslation of /foo/bar provided.

Installation

  1. composer require arsthanea/page-actions-bundle
  2. Add PageActionsBundle to your Kernel
  3. Update your db schema / create migration
  4. Import the page_actions routing in your main routing.yml:

Usage

Configure available resources

First, you need to configure available routes / controllers. Since this routing is highly dynamic, not any route will match any page, so we need to have some hints. List your resources in configuration:

This is either an annotation and a controller, or a yaml / xml etc with routes, same as you’d use in routing.yml. You cannot however use other configuration options such as prefix, defaults, etc. The key name is important, it will be used later.

Create controller

Let’s now define the controller. You can automatically use $page and $nodeTranslation in your actions. Besides that, it’s just a standard controller. For example:

Configure the page

The last piece is configuring the page entity to handle specified actions. Do this by implementing the PageActionsInterface:

Notice, that the values returned by this method need to match the keys defined in configuration earlier.

Save the page

Nothing works yet. Now you need to save the page, for the custom page routes to be created.

Use the actions

For example, in your default view:

You didn’t specify the url parameter in your route, but since the resources are mounted relative to a page it is added automatically by the bundle and you need to provide it when generating routes.


All versions of page-actions-bundle with dependencies

PHP Build Version
Package Version
Requires kunstmaan/bundles-cms Version ~3.2 | ~5
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 arsthanea/page-actions-bundle contains the following files

Loading the files please wait ....