<commit_before># Slug Validation Bundle #

[![Build Status](https://travis-ci.org/webfactory/slug-validation-bundle.svg?branch=master)](https://travis-ci.org/webfactory/slug-validation-bundle)
[![Coverage Status](https://coveralls.io/repos/github/webfactory/slug-validation-bundle/badge.svg?branch=master)](https://coveralls.io/github/webfactory/slug-validation-bundle?branch=master)

Do not clutter your controller actions with URL slug validation: This Symfony bundle helps
to validate object slugs in URLs transparently.

- Checks if a slug is valid (if provided at all)
- Redirects to the URL with the correct slug on failure (for example after a slug change)

## Initialization Tasks (remove this block once you are done) ##

- Activate builds in [Travis CI](https://travis-ci.org/)
- Activate repository at [Coveralls](https://coveralls.io)
- Publish at [Packagist](https://packagist.org/)
- Create webhook that pushes repository updates to [Packagist](https://packagist.org/)

## Motivation ##

Handling of URL Slugs is a part of many web applications. Although readable URLs are nice, they usually do not
contribute to your main functionality. Instead, slug validation and handling of redirects in case of failure generates
a lot of noise in your controller actions, is often cluttered over many parts of the application and makes it harder
to see the core problems that are solved.

After facing these problems several times, we decided to create a system that handles slug validation as part<commit_msg>removed tasks that are done<commit_after># Slug Validation Bundle #

[![Build Status](https://travis-ci.org/webfactory/slug-validation-bundle.svg?branch=master)](https://travis-ci.org/webfactory/slug-validation-bundle)
[![Coverage Status](https://coveralls.io/repos/github/webfactory/slug-validation-bundle/badge.svg?branch=master)](https://coveralls.io/github/webfactory/slug-validation-bundle?branch=master)

Do not clutter your controller actions with URL slug validation: This Symfony bundle helps
to validate object slugs in URLs transparently.

- Checks if a slug is valid (if provided at all)
- Redirects to the URL with the correct slug on failure (for example after a slug change)

## Initialization Tasks (remove this block once you are done) ##

- Publish at [Packagist](https://packagist.org/)
- Create webhook that pushes repository updates to [Packagist](https://packagist.org/)

## Motivation ##

Handling of URL Slugs is a part of many web applications. Although readable URLs are nice, they usually do not
contribute to your main functionality. Instead, slug validation and handling of redirects in case of failure generates
a lot of noise in your controller actions, is often cluttered over many parts of the application and makes it harder
to see the core problems that are solved.

After facing these problems several times, we decided to create a system that handles slug validation as part
{'fraction_non_alphanumeric': 0.08481532147742818, 'fraction_numerical': 0.0, 'mean_word_length': 5.068464730290456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4565932', 'n_tokens_mistral': 800, 'n_tokens_neox': 778, 'n_words': 332}