free2er / webservice
Symfony webservice template
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 3
Type:project
Requires
- php: ^7.2
- ext-ctype: *
- ext-iconv: *
- ext-json: *
- ext-mbstring: *
- free2er/json-negotiator-bundle: ^1.0
- free2er/jwt-authenticator-bundle: ^2.0
- nelmio/cors-bundle: ^2.0
- nesbot/carbon: ^2.27
- ramsey/uuid: ^3.8
- sensio/framework-extra-bundle: ^5.5
- symfony/console: 5.0.*
- symfony/dotenv: 5.0.*
- symfony/flex: ^1.3.1
- symfony/framework-bundle: 5.0.*
- symfony/orm-pack: ^1.0
- symfony/security-bundle: 5.0.*
- symfony/serializer-pack: ^1.0
- symfony/translation: 5.0.*
- symfony/twig-pack: ^1.0
- symfony/validator: 5.0.*
- symfony/yaml: 5.0.*
Requires (Dev)
- free2er/coding-standard: ^1.1
- symfony/profiler-pack: ^1.0
- symfony/test-pack: ^1.0
Conflicts
This package is auto-updated.
Last update: 2024-10-29 05:40:42 UTC
README
Symfony webservice template
Installation
This webservice can be copied with the Composer dependency manager.
-
Create project
composer create-project free2er/webservice my-service cd my-service
-
Copy the OAuth public key or create new one
cd keys openssl genrsa -out private.key 2048 openssl rsa -in private.key -pubout -out public.key
-
Check code style and tests
composer lint composer test
-
Done!
symfony serve curl localhost:8000 curl -H "Authorization: Bearer your.jwt.key" localhost:8000/api/v1/user
Docker
-
Install Docker and Docker Compose
-
Create project
git clone git@github.com:free2er/webservice.git my-service cd my-service
-
Copy the OAuth public key or create new one
cd keys openssl genrsa -out private.key 2048 openssl rsa -in private.key -pubout -out public.key
-
Check code style and tests
docker-compose run fpm composer lint docker-compose run fpm composer test
-
Done!
docker-compose up curl localhost:8000 curl -H "Authorization: Bearer your.jwt.key" localhost:8000/api/v1/user