https://github.com/yoannfleurydev/contacts-web-service
Simple Web Service to manage contacts
https://github.com/yoannfleurydev/contacts-web-service
api contacts php symfony web-services
Last synced: 2 months ago
JSON representation
Simple Web Service to manage contacts
- Host: GitHub
- URL: https://github.com/yoannfleurydev/contacts-web-service
- Owner: yoannfleurydev
- License: apache-2.0
- Created: 2017-12-07T13:24:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T12:50:01.000Z (about 7 years ago)
- Last Synced: 2025-01-26T08:45:57.019Z (4 months ago)
- Topics: api, contacts, php, symfony, web-services
- Language: PHP
- Homepage:
- Size: 7.24 MB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Contacts
[](https://travis-ci.org/yoannfleurydev/contacts-web-service)
POC using Symfony project.
## Configuration
* Enable `php_fileinfo` extension in your `php.ini`.
* Setup your Database connector in `app/config/config.yml`
* Execute `composer intall`
* Generate the SSH keys :```bash
mkdir -p var/jwt # For Symfony3+, no need of the -p option
openssl genrsa -out var/jwt/private.pem -aes256 4096
openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
```* Create Database `php bin/console doctrine:database:create`
* Create Tables `php bin/console doctrine:schema:update --force`
* Load DataFixtures if needed : `php bin/console doctrine:fixtures:load`
* Launch server : `php bin/console server:run`## Tests
Just write your tests and run `./vendor/bin/simple-phpunit`. It is a wrapper provided
by Symfony.You can also run
```bash
vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml.dist tests
```## Authors
* Yoann Fleury
* Georges Buquet