# symfony-demo **Repository Path**: finley/symfony-demo ## Basic Information - **Project Name**: symfony-demo - **Description**: 3.4 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README symfony-demo ============ A Symfony project created on October 19, 2018, 1:50 pm. 1. 你用过哪些bundle user-bundle excelbundle monolog-bundle swiftmailer-bundle doctrine-bundle 2. Laravel symfony的区别 Laravel 的底层用的 symfony 的组件 Symfony is a very famous PHP framework, I know many projects using his base components, like drupal, Laravel, which I have used them in development. [Bundle] a bundle is meant to be something that can be reused as a stand-alone piece of software. 一组结构化的文件,存于一个“用于实现某个独立功能”的目录 Object Relational Mapper (ORM) annotation [ænə'teɪʃn] $em = $this->getDoctrine()->getManager(); “Entity” 表示 一个保存着数据的基本类, 类似 Model 可以使用命令生成 php bin/console doctrine:generate:entity Respository [rɪˈpɑ:zətɔ:ri] 一个PHP类,它的唯一工作就是帮助你从那个特定的类中取出entity ->find ->findOneByName('Keyboard'); ->findByPrice(19.99); injects dependencies container instantiation Webpack Encore symfony 自带的webpack工具 简单总结: symfony的配置文件太分散,router没有Laravel那么直观 symfony is more complex, I think it suit for enterprise, it is very scalable, maintainable. I prefer the model layer of Laravel, in actually we also create repository layer, which on the top of model layer. by the way, Laravel has a slim version, his name is Lumen, it's a very good solution for micro-services and Restful API develop. Laravel is more convenience. also middleware. 总之,Laravel 比 Symfony更加简单易学。 https://www.toptal.com/php/choosing-between-symfony-and-laravel-frameworks