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.
Chert requires the following basics to run out-of-box.
- PHP 5.3.8+
- Composer
- The PDO SQLite driver (or Mysql)
Using CLI, type the following :
$ composer install pygillier/chert
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.
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.
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.
Everything is documented in settings.yml-dist
.
Open your favorite browser and go to Chert URL. Enter an URL in input field then save. You're done!