<commit_before>#  Abridger.php
Abridger is a lightweight URL shortener service, written in PHP.

## Description
A URL shortener is a web service that translates long URLs into abbreviated alternatives, and works based on URL redirection.

Note: This project is my solution to [Mindvalley](http://www.mindvalley.com)'s assignment for the Web Developer position. I am sharing this for educational-purposes only.

## Deploying to Heroku
```bash
$ heroku apps:create
$ git push heroku master:master
$ heroku config:set ABRIDGER=production
$ heroku apps:rename abridger
$ heroku logs
```
Make sure you have created cfg/database.production.ini with the required settings.<commit_msg>Updated README.md with Slim and Hashids<commit_after>#  Abridger.php
Abridger is a lightweight URL shortener service, written in PHP.

## Description
A URL shortener is a web service that translates long URLs into abbreviated alternatives, and works based on URL redirection.
It uses [Slim Framework](http://www.slimframework.com/) and [Hashids](http://hashids.org), which I'm pretty impressed with.

Note: This project is my solution to [Mindvalley](http://www.mindvalley.com)'s assignment for the Web Developer position. I am sharing this for educational-purposes only.

## Deploying to Heroku
```bash
$ heroku apps:create
$ git push heroku master:master
$ heroku config:set ABRIDGER=production
$ heroku apps:rename abridger
$ heroku logs
```
Make sure you have created cfg/database.production.ini with the required settings.
{'fraction_non_alphanumeric': 0.07712765957446809, 'fraction_numerical': 0.0, 'mean_word_length': 5.244813278008299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3034530', 'n_tokens_mistral': 431, 'n_tokens_neox': 408, 'n_words': 179}