Skip to content

Repository files navigation

UX Link Bundle

CI Packagist Version Packagist Downloads License PHP Symfony GitHub stars Coverage

Found this useful? Install from Packagist and give the repo a star on GitHub. It helps us maintain and improve the project.

Generate safe, extensible contact, share, map, and download links for Symfony applications.

FrankenPHP Friendly Worker Mode

This bundle is FrankenPHP worker mode friendly.

Version information

Version PHP Symfony Status
1.1.x >= 8.2 7.0 – 8.1+ Supported
1.0.x >= 8.2 7.0 – 8.1+ Supported

Install a specific release:

composer require nowo-tech/ux-link-bundle:^1.1

Installation

composer require nowo-tech/ux-link-bundle

Register the bundle (Symfony Flex does this automatically):

// config/bundles.php
Nowo\UxLinkBundle\NowoUxLinkBundle::class => ['all' => true],

Quick example (PHP)

use Nowo\UxLinkBundle\Contract\LinkFactoryInterface;

$link = $linkFactory->create('contact', 'whatsapp', [
    'recipient' => '+34600111222',
    'message' => 'Hello',
]);
echo $link->getUrl();

Quick example (Twig)

{{ ux_link_url('contact', 'whatsapp', { recipient: '+34600111222', message: 'Hello' }) }}

Quick example (Twig Component)

<twig:UxLink family="contact" provider="whatsapp" recipient="+34600111222" message="Hello" />

Demos

make -C demo up-symfony8   # http://localhost:8047
make -C demo up-symfony8   # http://localhost:8048

Documentation

Additional documentation

Tests and coverage

  • Tests: PHPUnit (unit + integration)
  • PHP: 100%
  • TS/JS: N/A
  • Python: N/A
make test
make test-coverage

License

MIT — see LICENSE.

About

Generate safe, extensible contact, share, map, and download links for Symfony applications.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages