This is the code that powers Codepoints.net. You can
find a short primer in the
on how the code flows.
Feel free to open issues at the bug tracker or contact us via Twitter: @CodepointsNet or Mastodon: @email@example.com.
See the re-use statement on codepoints.net for licensing and attribution information.
Setting up your own local instance
Get the latest database dump from
dumps.codepoints.net and feed it in a MySQL
database. Then create in this folder (next to this
README.md) a file
db.conf with this content (replace values with your database credentials):
[clientreadonly] password=mysql-password user=mysql-user database=mysql-database
Install the dependencies using Composer (click here to learn how to get Composer):
Presto! Your local copy of codepoints.net is ready! To get the site running, you can use PHP’s built in development server:
php -S localhost:8000 -t codepoints.net bin/devrouter.php
or, if you like, alternatively
In both cases, your local codepoints.net clone is reachable under localhost:8000.
To quickly experiment with some PHP code, run this command:
This starts a PHP command-line session with all required libraries autoloaded.
$db contains an already active PDO instance pointing to your