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.
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.
# 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