PHPackages                             zaengle/craft-sharingintents - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zaengle/craft-sharingintents

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

zaengle/craft-sharingintents
============================

Generate social sharing intent URLs

5.1.2(11mo ago)16.2k↓60%[1 PRs](https://github.com/zaengle/craft-sharingintents/pulls)MITPHPPHP ^8.2 | ^8.3CI failing

Since Oct 26Pushed 3w ago3 watchersCompare

[ Source](https://github.com/zaengle/craft-sharingintents)[ Packagist](https://packagist.org/packages/zaengle/craft-sharingintents)[ RSS](/packages/zaengle-craft-sharingintents/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (8)Versions (9)Used By (0)

Sharing Intents plugin for Craft CMS 5.x
========================================

[](#sharing-intents-plugin-for-craft-cms-5x)

Generate social sharing intent URLs

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.0.0-beta.6 or later.

Installation
------------

[](#installation)

```
cd /path/to/project
composer require zaengle/sharing-intents
./craft plugin/install sharing-intents
```

Sharing Intents Overview
------------------------

[](#sharing-intents-overview)

Generate sharing URLs using web intents

Current providers:

- Facebook
- Twitter / X
- LinkedIn

Configuring Sharing Intents
---------------------------

[](#configuring-sharing-intents)

Zero config :)

Using Sharing Intents
---------------------

[](#using-sharing-intents)

Templating uses `craft.sharingIntents` which has 3 methods:

`facebook()`, `twitter()`, `linkedIn()`

all three take the same params:

`url ` URL to share `description
