Download the PHP package mbagnall/nodeaccess without Composer

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

Nodeaccess - Per Node Access Management for Drupal 11

Introduction

This module allows you to manage permissions for individual nodes by role and user. You can restrict access to any node without having to use taxonomy by assigning view, edit, or delete permissions per node to specific roles or users.

Grants are configured directly on the node add/edit form rather than on a separate tab. Default grants are defined per content type on each content type's edit page.

Requirements

Installation

Install via Composer:

Then enable the module:

Note: This package conflicts with drupal/nodeaccess (the legacy Drupal.org version). You cannot have both installed at the same time.

Configuration

  1. Enable per content type: Go to Administration > Structure > Content types, edit a content type, and check "Show grant tab for this node type" under the Nodeaccess section. Set default role permissions for view, edit, and delete here as well.

  2. Assign role visibility: Go to Administration > People > Permissions and grant the "Include in Nodeaccess grants" permission to roles that should appear in per-node grant forms. If the "Authenticated user" role has this permission, all non-anonymous roles are automatically included.

  3. Per-node grants: When creating or editing a node (for an enabled content type), expand the Nodeaccess section, check "Engage nodeaccess control for this node", and set role and user-specific permissions.

  4. Admin page: Visit Administration > Structure > Nodeaccess to view or rebuild the role-to-grant-ID mapping.

Permissions

Permission Description
Administer Nodeaccess Access the Nodeaccess administration pages (restricted)
Grant Node Permissions Allow granting permissions on individual nodes
Include in Nodeaccess grants Determines if a role appears in per-node grant forms

Testing

PHPUnit tests are located in tests/src/. To run them from the Drupal root:

Kernel tests cover grant records, access checks, role map management, and installation. Functional tests cover the admin configuration form and node form integration.

Links


All versions of nodeaccess with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
drupal/core-recommended Version ^8.8.0 || ^9.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 mbagnall/nodeaccess contains the following files

Loading the files please wait ...