pygillier / chert
An URL minifier in 5 minutes.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 5
Type:project
Requires
- doctrine/dbal: 2.2.*
- igorw/config-service-provider: ^1.2
- monolog/monolog: ^1.17
- silex/silex: 1.*
- symfony/config: ^3.0
- symfony/form: ^3.0
- symfony/security-csrf: ^3.0
- symfony/translation: ^3.0
- symfony/twig-bridge: ^3.0
- symfony/validator: ~2.3
- symfony/yaml: ~2.3
- twig/twig: ^1.23
Requires (Dev)
- filp/whoops: 1.1.*
- silex/web-profiler: ^1.0
- sorien/silex-pimple-dumper: ~1.0
This package is not auto-updated.
Last update: 2020-01-24 14:53:15 UTC
README
Chert is your own URL minifier in less than 5 minutes. Built with Silex, you only need one command for setup and have you personal bit.ly or goo.gl.
Requirements
Chert requires the following basics to run out-of-box.
- PHP 5.3.8+
- Composer
- The PDO SQLite driver (or Mysql)
Installation
Using CLI, type the following :
$ composer install pygillier/chert
Configuration
Installation process will create the file app/settings.yml
. This default setup uses a SQLite database located at app/chert.db
. If you encounter SQLite error, please make sure the file and the containing directory are writable by the webserver.
Alternate database (MySQL, PGSQL, ...)
Chert can use any PDO compatible DBMS.
As Chert is based on Doctrine DBAL, database configurations options in Chert are the same as the one used in DBAL configuration. An SQL script is provided for MySQL, it can be easily converted to others RDBMS.
Web-access
Chert's entry point is web/index.php
. In order to have shorter URLs and protect your configuration file, you need to redefine vhost document root to web/
directory. For more details, see the Silex webserver configuration page.
Settings.yml reference
Everything is documented in settings.yml-dist
.
Usage
Open your favorite browser and go to Chert URL. Enter an URL in input field then save. You're done!