nostadt / php-share-url

Generate share-urls for social networks and messengers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Share URL

CI Process packagist.org Donate

This PHP package provides pure classes, to generate share-urls for social networks and messengers.
For an up-to-date list of supported targets have a look at the src-directory.

Q/A

When should I use this package?

Use this package if you want to generate urls, to share stringable content from your application and do not want additional JavaScript, cookies etc. placed on your application.

Where is social network/messenger X?

You are invited to create an issue or pull requests with your needs. When creating a pull request please have a look at the already existing code and don't forget to write a unit test.

Development

# composer
docker run --rm --interactive --tty --volume $PWD:/app composer install

# PHPUnit
docker run -it --rm --name php-share-url -v "$PWD":/app -w /app php:8.3-cli php vendor/bin/phpunit

# PHPStan
docker run -it --rm --name php-share-url -v "$PWD":/app -w /app php:8.3-cli php vendor/bin/phpstan

About

Generate share-urls for social networks and messengers.

License:MIT License


Languages

Language:PHP 97.1%Language:Shell 2.9%