Download the PHP package mediawiki/smw-file-protect without Composer

On this page you can find all versions of the php package mediawiki/smw-file-protect. 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 smw-file-protect

SMWFileProtect

Extension to protect access to files based on which pages they are embedded in and the SMW properties assigned to those pages.

Requires MediaWiki 1.43 or later, PHP 8.1 or later and Semantic MediaWiki. Version 0.4.0 and earlier do not protect anything on MediaWiki 1.40 or later.

Installation

Files must be served through img_auth.php, see https://www.mediawiki.org/wiki/Manual:Image_authorization.

Note that img_auth.php only checks read permissions when anonymous users cannot read the wiki ($wgGroupPermissions['*']['read'] = false). On a wiki that anonymous users can read, it streams every file without asking any extension, so this extension only protects the File: description pages. Since MediaWiki 1.43 that check is $publicWiki in includes/filerepo/AuthenticatedFileEntryPoint.php.

How it works

A user can read a File: page, and download the file, unless a page that uses the file (via imagelinks) denies them:

Users in $SMWFileProtectRights can always read files.

Parameters


All versions of smw-file-protect with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer/installers Version 1.*,>=1.0.1
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 mediawiki/smw-file-protect contains the following files

Loading the files please wait ...