Framadate v2 API backend en symfony. dépot miroir
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Baptiste Lemoine e235986483 other 3 years ago
bin Add initial set of files 4 years ago
config other 3 years ago
doc hop 3 years ago
public hop 3 years ago
src other 3 years ago
templates try to send example template html 3 years ago
.env other 3 years ago
.env.production hop 3 years ago
.gitignore Merge branch 'master' of 3 years ago
.gitmodules hop 3 years ago
.htaccess hop 3 years ago Merge branch 'master' of 3 years ago
composer.json send mailer without swift 3 years ago
composer.lock send mailer without swift 3 years ago
symfony.lock send mailer without swift 3 years ago hop 3 years ago

#Funky Framadate API Experimental REST backend in symfony 4 for Funky framadate frontend.

Follow this guide to setup.


return stack of votes when we want to get the configuration of one poll (see doc/


You MUST have php version 7+ and Composer, and a database like Mysql, or postgresql, or mongodb, or any database that Doctrine can handle. Setup access to database by creating a .env.local file, and fill the database user and password data. you can check that the database connection works with the command:

php bin/console doctrine:schema:validate

Getting started


install dependencies with Composer

there are examples of request to make it all work in the doc/

install the vendors

composer install

initiate the database with fixtures

php bin/console doctrine:schema:drop --force
php bin/console doctrine:schema:create
php bin/console doctrine:fixtures:load --no-interaction --purge-with-truncate

launch local server with

php bin/console server:run


set a virtual host on your server, configure CORS access to have the API to work. configure database access in a .env.local file , replace variables DATABASE_URL=mysql://database_user:db_user_password@ this file is not versionned and should stay like this.

cronjob to delete expired polls

add this line in your crontab to run the clearance of expired polls everyday at 0h00.

0 0 * * * wget http://MYWEBSITE/api/v1/poll/clean-polls 

you can open your crontabl in command line with :

crontab -e


made by B. Lemoine, aka Tykayn, for the framadate funky front end project, a polling libre software.