Coder Social home page Coder Social logo

slashfan / symfony-realworld-example-app Goto Github PK

View Code? Open in Web Editor NEW
109.0 109.0 31.0 3.59 MB

Symfony 5 codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

License: MIT License

PHP 90.87% Dockerfile 1.44% Makefile 5.77% Shell 1.92%
realworld realworld-backend symfony symfony-application

symfony-realworld-example-app's People

Contributors

dependabot[bot] avatar slashfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

symfony-realworld-example-app's Issues

[Question] about project best practices

Hello @slashfan ๐Ÿ‘‹, I really appreciate your work, it's very qualitative, it allowed me to deepen my knowledge with Symfony and especially learn how to build a solid API.

I noted some questions about the good practices you used during the development of this project. I would be really grateful if you can enlighten me on some points, it will certainly be very useful for the followers of this project even for those how wanna contribute.

  1. Why you prefer not to using the AbstractController proposed by the framework, instead of injecting all the services one by one under your controller consutruct. I feel that the answer is related to a good practice but I do not really see why!

  2. What's the point of adding the final key, on services, controllers, subscribers ?

  3. Does there is a convention used for renaming your controllers, for example often you use this format <Get|Create|Delete..><Entity>Controller.php like GetArticleController.php and sometimes you just use<some string>Controller.php like SecurityController.php

  4. I wonder why you prefer having only one function per controller and not more. Is there a use behind this design !

  5. Is there a rule or an RFC for renaming paths when defining routes. For example if you have a route responsible for exporting any article, do I should call it /api/article/1.pdf or /api/article/export.pdf ?

  6. Is there a rule for renaming services, it is better to suffix them by Service or Handler or nothing. What about having one function per a service like you did inside the controllers ?

  7. Instead of using the form component via $form->submit() + form types , why you didn't use the Denormelizers to retrieve your data and populate it in your entity for POST, PUT and PATCH methods and then you collect validations errors like it's mentioned here ?

  8. What is the difference between EventListener and EventSubscriber, what is the most recommended for use and why you did put JWTAuthenticationSubscriber.php in EventSubscriber instead of putting it in EventLisetner ?

  9. I see Rector, PHPstan or PHPslam, or PHPmd ? what is the difference are they all a statics analyzers tools !

I look forward to your response. Thank you so mush ๐Ÿ™. Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.