This repository contains example apps built with the Nymph ORM. For more information, you can see the main Nymph repository.
This is also the repository that is hosted on Heroku as the Nymph demos.
The PHP implementation of Nymph/Tilmeld has been deprecated. It will no longer have any new features added. Instead, a new version of Nymph running on Node.js, written entirely in TypeScript will replace the PHP implementation. You can find it over at the Nymph.js repo.
ℹ️ In the main Nymph repo, there is a Docker setup that will do all of this for you with one command.
Set up a PHP server with MySQL on your localhost.
Set up a MySQL database called nymph_example
and a user called nymph_example
with the password "omgomg". Grant all permissions on `nymph_example` to `localhost`.`nymph_example`.
Clone this repository into your web server.
git clone https://github.com/sciactive/nymph-examples.git
cd nymph-examples
Run the following command in the repository's directory:
composer install
Now start the PubSub server with:
php examples/pubsub.php
Now you can see the example apps (assuming your server is on port 8080):
And you can run the Node example with:
node nodeconnect.js
For a thorough step by step guide to setting up Nymph on your own server, visit the Setup Guide.
Check out the API Docs in the wiki.