nostadt/share-url

2.0.0 2024-02-17 17:33 UTC

This package is auto-updated.

Last update: 2024-11-17 19:44:36 UTC


README

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