Download the PHP package lucamauri/paragraphlinks without Composer

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

ParagraphLinks MediaWiki Extension

ParagraphLinks is a MediaWiki extension that adds a hover-activated copy-link icon (🔗) to every section heading in wiki page content. Clicking the icon copies the full URL — including the heading's anchor fragment — to the clipboard, letting users share deep links to specific sections without inspecting the page source.

Features

Requirements

Installation

Manual installation

  1. Clone the repository into your extensions/ directory:

  2. Enable the extension in LocalSettings.php:

Composer installation

  1. Add the package to your composer.local.json:

  2. Run Composer:

  3. Enable the extension in LocalSettings.php:

Note: No database update is required. Do not run maintenance/update.php for this extension.

Configuration

Add any of the following to your LocalSettings.php after the wfLoadExtension call:

How It Works

  1. On each page view, the PHP hook BeforePageDisplay checks whether the extension is enabled and whether the current namespace is in $wgParagraphLinksNamespaces.
  2. If both conditions are met, the ext.paragraphlinks ResourceLoader module is enqueued.
  3. The JavaScript module attaches a 🔗 icon to every h2–h6 element inside #mw-content-text.
  4. Clicking the icon copies window.location.href — with the heading's id as the fragment — to the clipboard using the browser's native Clipboard API.
  5. A MediaWiki notification confirms success or reports an error.

File Structure

Development

Running Tests

Development Setup

  1. Clone into your MediaWiki extensions/ directory and enable the extension.
  2. Enable detailed error reporting in LocalSettings.php:

  3. Disable caching to see changes immediately:

Contributing

  1. Fork the repository on GitHub.
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes and add or update tests.
  4. Verify all tests pass.
  5. Open a pull request against main.

Please follow MediaWiki coding conventions and add PHPDoc comments to all public methods.

Troubleshooting

Icons not appearing

Copy to clipboard not working

Security Considerations

Browser Support

Feature Modern browsers Older browsers
Clipboard copy Native Clipboard API document.execCommand fallback
Icon display Full CSS support Graceful degradation

License

This extension is licensed under the GPL-2.0-or-later license.

Links


All versions of paragraphlinks with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
composer/installers Version ^2|^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 lucamauri/paragraphlinks contains the following files

Loading the files please wait ...