Skip to content
My personal/professional site
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
html
images
loaders
md
pages
.gitignore
.htaccess
README.md
android-chrome-192x192.png
android-chrome-512x512.png
apple-touch-icon.png
browserconfig.xml
colors.php
coming-soon.php
common.php
composer.json
composer.lock
contact-antispam-existing.php
contact-antispam.php
contact-messages.php
contact-submit.php
example-config.php
favicon-16x16.png
favicon-32x32.png
favicon.ico
mstile-144x144.png
mstile-150x150.png
mstile-310x150.png
mstile-310x310.png
mstile-70x70.png
router.php
safari-pinned-tab.svg
site.webmanifest
test-urls.php

README.md

nylen.io

This is the PHP code behind my personal/professional website.

For more info about this site, see https://nylen.io/this-site/.

Server requirements

  • (In production) apache2 with mod_rewrite enabled
  • PHP XML extensions installed (SimpleXmlElement available)
  • flock available and working (the site is served from a fast, local filesystem, for example; see this article for more caveats)
  • composer dependencies installed, or required composer packages otherwise installed into the vendor/ directory

Local development

  • Pick a hostname and alias it to 127.0.0.1, e.g. nylen.localhost
  • Run composer install
  • Run php -S nylen.localhost:8000 router.php
  • Visit http://nylen.localhost:8000/

Production hosting

  • Run composer install
  • Set up Apache and a virtual host for the site
  • Add ErrorDocument 404 /404/ to the site's .htaccess file
  • (To be improved) Symlink each directory in loaders/ to the site root

Credits

Thanks to @michelf for the excellent php-markdown library.

You can’t perform that action at this time.