2017 © Pedro Peláez
 

symfony-bundle url-bundle

Url utilities for Symfony

image

zicht/url-bundle

Url utilities for Symfony

  • Friday, June 29, 2018
  • by muhammedeminakbulut
  • Repository
  • 1 Watchers
  • 0 Stars
  • 594 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 0 Forks
  • 7 Open issues
  • 100 Versions
  • 158 % Grown

The README.md

zicht/url-bundle

Scrutinizer Code Quality Code Coverage Build Status, (*1)

This bundle is part of the zicht/cms suite., (*2)

The ZichtUrlBundle provides the following features:, (*3)

  • URL "Aliasing" - use seo-friendly url's without routing. The principle is that any url can have an alias which is used to show "readable" url's to the user. The general approach works in a way that is interchangable: each aliased version of any url can be translated to the unaliased version and vice versa. HTML code in the content database should never refer to aliased urls, so this integrates tightly with TinyMCE in the admin.
  • By implementing the ProviderInterface, any service can be turned into an object router; i.e.: link to "objects" in stead of paths. This is utilized in the zicht/page-bundle to be able to link to Page object
  • Static references: named url's which can be injected anywhere in your project
  • Validation constraints

Validator Constraints usage

Zicht\Bundle\RcoSiteBundle\Entity\Page\ContentPage:
    getters:
        body:
            - Zicht\Bundle\UrlBundle\Validator\Constraints\ContainsValidUrls: ~

Tinymce Form type extension

If the TinyMce form type is used from the admin bundle. The type is extended to transform external urls to internal urls. No additional configuration is required, (*4)

Show public URLS of a page in the admin

To enable this feature, add the following to a page admin, and make sure that form_theme.html.twig from the url-bundle is loaded., (*5)

// use Zicht\Bundle\UrlBundle\Admin\AliasOverviewType;

public function configureFormFields(FormMapper $formMapper): void
{
    parent::configureFormFields($formMapper);
    $formMapper
        ->tab('admin.tab.alias_overview')
            ->add('alias_overview', AliasOverviewType::class, ['record' => $this->getSubject()])
        ->end()->end();
}

Importing a csv with aliases

Use the command php bin/console zicht:url:import-aliases url_aliases_file.csv --skip-header --csv-delimiter ';', (*6)

This command can parse csv files that follow the following syntax:, (*7)

PUBLICURL, INTERNALURL, TYPE, CONFLICTINGPUBLICURLSTRATEGY, CONFLICTINGINTERNALURLSTRATEGY
/home, /nl/page/1
/also-home, /nl/page/1

Note that the first line can be ignored using "--skip-header" TYPE, CONFLICTINGPUBLICURLSTRATEGY, and CONFLICTINGINTERNALURLSTRATEGY are optional.', (*8)

Events

Sitemap

There is an event that makes it possible to modify the resultset of the sitemap;, (*9)

  • zicht_url.sitemap.filter, which allows you to modify the result from the previous query and filter out items.

Maintainers

The Versions

29/06 2018
29/06 2018
29/06 2018
07/06 2018

dev-feature/cleanup

dev-feature/cleanup

Url utilities for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zicht online

06/06 2018
19/02 2018
05/10 2017

dev-bugfix/admin-remove-create-button-at-logs

dev-bugfix/admin-remove-create-button-at-logs

Url utilities for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zicht online

25/08 2017

dev-feature/cleanup--and--public_url-fix

dev-feature/cleanup--and--public_url-fix

Url utilities for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zicht online

20/06 2017

dev-feature/improve-url-handling

dev-feature/improve-url-handling

Url utilities for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zicht online

28/02 2017

dev-fix/eliminate-itertools-twig-extension-dependency

dev-fix/eliminate-itertools-twig-extension-dependency

Url utilities for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zicht online

13/02 2017
03/10 2016

dev-feature/url-alias-list-admin

dev-feature/url-alias-list-admin

Url utilities for Symfony

  Sources   Download

The Requires

 

The Development Requires

by Zicht online

16/08 2016
02/08 2016
28/07 2016

2.6.1

2.6.1.0

Url utilities for Symfony

  Sources   Download

The Requires

 

The Development Requires

by Zicht online

27/07 2016

2.6.0-rc.1

2.6.0.0-RC1

Url utilities for Symfony

  Sources   Download

The Requires

 

The Development Requires

by Zicht online

25/07 2016

2.5.1

2.5.1.0

Url utilities for Symfony

  Sources   Download

The Requires

 

The Development Requires

by Zicht online

22/07 2016

2.5.0

2.5.0.0

Url utilities for Symfony

  Sources   Download

The Requires

 

The Development Requires

by Zicht online