欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Symfony
来自开放百科 - 灰狐
(版本间的差异)
小 (→项目) |
小 (→项目) |
||
(未显示1个用户的39个中间版本) | |||
第1行: | 第1行: | ||
{{SeeWikipedia}} | {{SeeWikipedia}} | ||
− | |||
− | + | [[Image:symfony-logo.png|right|Symfony]] | |
− | + | Symfony | |
+ | |||
+ | ==简介== | ||
+ | Symfony:一个强大、流行的 [[PHP]] 开源框架,采用 MIT 许可协议。 | ||
+ | |||
+ | 可重点关注这三个基于 Symfony 的开源项目: | ||
+ | * 营销,[[Mautic]] Open Source Marketing Automation Software. | ||
+ | * 电商,[[Sylius]] Open Source eCommerce Platform. | ||
+ | * 分析,[[Matomo]] is the leading Free/Libre open analytics platform. | ||
+ | |||
+ | ==功能== | ||
+ | Symfony 的特色体现:Components、Bundles、Plugins,它们是Symfony扩展的基础。 | ||
Symfony2(以下简称SF2)是一款及其强大的PHP框架,可以说应该是PHP中最强大的框架了。就算PHP官方之框架Zend Framework(以下简称ZF2)也一直望尘莫及,并且从ZF2开始就一直模仿SF2,但是从未超越它。SF2具有强大的可扩展性,利用Bundle的概念使框架可以无限制扩展,乃至SF2本身就是一个Bundle,并且可以利用SF2来构成自己所需的PHP框架。SF2默认整合了Twig模板,Doctrine ORM等,可以说唯一具备了PHP本身的简洁,明析与速度快的优点也结合了Java领域框架的强大性和Ruby on Rails敏捷开发概念的全能型框架。目前世界最流行的CMS系统-Drupal的Drupal8版本也将采用Symfony2,可见其强大及灵活之处。 | Symfony2(以下简称SF2)是一款及其强大的PHP框架,可以说应该是PHP中最强大的框架了。就算PHP官方之框架Zend Framework(以下简称ZF2)也一直望尘莫及,并且从ZF2开始就一直模仿SF2,但是从未超越它。SF2具有强大的可扩展性,利用Bundle的概念使框架可以无限制扩展,乃至SF2本身就是一个Bundle,并且可以利用SF2来构成自己所需的PHP框架。SF2默认整合了Twig模板,Doctrine ORM等,可以说唯一具备了PHP本身的简洁,明析与速度快的优点也结合了Java领域框架的强大性和Ruby on Rails敏捷开发概念的全能型框架。目前世界最流行的CMS系统-Drupal的Drupal8版本也将采用Symfony2,可见其强大及灵活之处。 | ||
− | == | + | ==版本== |
− | + | [https://symfony.com/releases Symfony Releases] | |
− | + | *[https://symfony.com/releases/6.0 Symfony 6.0] 需要 PHP 8.0.2 或以上 | |
− | $ | + | *[https://symfony.com/releases/5.4 Symfony 5.4] LTS 版本,需要 PHP 7.2.5 或以上 |
+ | *[https://symfony.com/releases/4.4 Symfony 4.4] LTS 版本,需要 PHP 7.1.3 或以上 | ||
+ | |||
+ | ==指南== | ||
+ | $ curl -sS https://get.symfony.com/cli/installer | bash | ||
$ symfony -v | $ symfony -v | ||
$ symfony new myproject | $ symfony new myproject | ||
$ cd myproject/ | $ cd myproject/ | ||
− | $ | + | $ symfony server:start |
http://localhost:8000 | http://localhost:8000 | ||
− | $ | + | $ symfony server:stop |
+ | |||
+ | ==Applications== | ||
+ | [https://flex.symfony.com/ Symfony Recipes Server] Symfony [https://github.com/symfony/flex Flex] is the way to manage Symfony applications. | ||
==Components== | ==Components== | ||
[http://symfony.com/components Symfony Components] | [http://symfony.com/components Symfony Components] | ||
− | *[https://github.com/symfony/ | + | *[[Symfony security component]] |
− | *[http://symfony.com/ | + | *[https://github.com/symfony/polyfill-php80 Polyfill PHP 8.0] 该组件在纯 [[PHP]] 代码中实现了某些 PHP 8.0 功能,以此提供了在 PHP 8.0 之前的版本中无法使用的功能。 |
+ | *[https://github.com/symfony/http-kernel HttpKernel Component] | ||
+ | *[https://github.com/symfony/http-foundation HttpFoundation Component] | ||
+ | *[https://github.com/symfony/http-client HttpClient component] | ||
+ | *[https://github.com/symfony/console Console Component] | ||
+ | *[https://github.com/symfony/process Process Component] | ||
+ | *[https://github.com/symfony/translation Translation Component] | ||
+ | *[https://github.com/symfony/routing Routing Component] | ||
+ | *[https://github.com/symfony/filesystem Filesystem Component] | ||
+ | *[https://github.com/symfony/form Form Component] | ||
==Bundles== | ==Bundles== | ||
+ | [[文件:FriendsOfSymfony.png|right|FriendsOfSymfony]] | ||
*[http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html DoctrineMongoDBBundle] Doctrine [[MongoDB]] Object Document Mapper (ODM) | *[http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html DoctrineMongoDBBundle] Doctrine [[MongoDB]] Object Document Mapper (ODM) | ||
+ | *[http://jmsyst.com/bundles/ Johannes Schmitt] | ||
+ | *[https://symfony.com/doc/current/bundles/FOSUserBundle/index.html FOSUserBundle] | ||
+ | *[https://symfony.com/doc/current/bundles/FOSRestBundle/index.html FOSRestBundle] | ||
==Plugins== | ==Plugins== | ||
第32行: | 第62行: | ||
==项目== | ==项目== | ||
[https://github.com/sitepoint/awesome-symfony Awesome Symfony] [[image:awesome.png]] | [https://github.com/sitepoint/awesome-symfony Awesome Symfony] [[image:awesome.png]] | ||
− | *[https://github.com/ | + | [[文件:Pimcore-logo-readme.png|right|Pimcore]] |
+ | *[https://github.com/symfony Symfony @ GitHub] | ||
+ | *[https://sonata-project.org/ Sonata Project] | ||
+ | *[https://github.com/EasyCorp/EasyAdminBundle EasyAdmin] | ||
*[https://github.com/sonata-project/SonataAdminBundle Sonata Admin Bundle] | *[https://github.com/sonata-project/SonataAdminBundle Sonata Admin Bundle] | ||
− | *[https://github.com/Sylius/Sylius Sylius] | + | *[https://github.com/Sylius/Sylius Sylius] eCommerce solutions |
*[https://github.com/elcodi/elcodi Elcodi for Symfony] | *[https://github.com/elcodi/elcodi Elcodi for Symfony] | ||
*[https://github.com/schmittjoh/JMSPaymentCoreBundle JMSPaymentCoreBundle] | *[https://github.com/schmittjoh/JMSPaymentCoreBundle JMSPaymentCoreBundle] | ||
− | |||
*[https://github.com/hwi/HWIOAuthBundle HWIOAuthBundle] | *[https://github.com/hwi/HWIOAuthBundle HWIOAuthBundle] | ||
*[http://api.symfony.com/3.1/index.html Symfony API] [https://github.com/FriendsOfPHP/Sami Sami: an API documentation generator] | *[http://api.symfony.com/3.1/index.html Symfony API] [https://github.com/FriendsOfPHP/Sami Sami: an API documentation generator] | ||
− | *[http://cmf.symfony.com/ Symfony CMF] | + | *[http://cmf.symfony.com/ Symfony CMF] [https://github.com/phpcr/phpcr PHP Content Repository PHPCR] |
+ | *[[Pimcore]] | ||
+ | *[[Drupal]] | ||
+ | *[https://github.com/bolt Bolt CMS] | ||
+ | *[[phpBB]] | ||
+ | *[[Nextcloud]] | ||
*[[OroPlatform]] | *[[OroPlatform]] | ||
*[[OroCRM]] | *[[OroCRM]] | ||
*[[OroCommerce]] | *[[OroCommerce]] | ||
*[[Marello]] | *[[Marello]] | ||
+ | *[https://github.com/shopware/platform Shopware] | ||
+ | *[https://github.com/mautic/mautic Mautic] Open Source Marketing Automation Software | ||
+ | |||
+ | ==MediaWiki== | ||
+ | 将 [[MediaWiki]] 和 Symfony 更好的集成、融合在一起。 | ||
+ | *[https://www.mediawiki.org/wiki/Extension:AuthSymfony Extension:AuthSymfony] | ||
+ | *[https://www.mediawiki.org/wiki/Requests_for_comment Requests for comment (RFCs)] | ||
+ | |||
+ | ==Phabricator== | ||
+ | 将 [[Phabricator]] 和 Symfony 更好的集成、融合在一起。 | ||
==分发版== | ==分发版== | ||
第50行: | 第97行: | ||
*[https://github.com/symfony/symfony-standard Symfony Standard Edition] | *[https://github.com/symfony/symfony-standard Symfony Standard Edition] | ||
*[https://github.com/gimler/symfony-rest-edition Symfony REST Edition] | *[https://github.com/gimler/symfony-rest-edition Symfony REST Edition] | ||
− | *[ | + | *[[API Platform]] |
*[https://github.com/symfony-cmf/standard-edition Symfony CMF Standard Edition] | *[https://github.com/symfony-cmf/standard-edition Symfony CMF Standard Edition] | ||
第59行: | 第106行: | ||
*[http://www.doctrine-project.org/projects/orm/1.2/docs/manual/en Doctrine ORM for PHP (1.2)] Creative Commons Attribution-Share Alike 3.0 Unported License. | *[http://www.doctrine-project.org/projects/orm/1.2/docs/manual/en Doctrine ORM for PHP (1.2)] Creative Commons Attribution-Share Alike 3.0 Unported License. | ||
*[http://www.symfony-project.org/jobeet/1_4/Propel/en/ Practical symfony 1.3 & 1.4 for Propel] Creative Commons Attribution-Share Alike 3.0 Unported License. | *[http://www.symfony-project.org/jobeet/1_4/Propel/en/ Practical symfony 1.3 & 1.4 for Propel] Creative Commons Attribution-Share Alike 3.0 Unported License. | ||
+ | |||
+ | ==用户案例== | ||
+ | [https://symfony.com/blog/category/case-studies Case Studies] | ||
+ | *[https://symfony.com/blog/yahoo-answers-powered-by-symfony Yahoo! Answers powered by symfony] | ||
+ | *[[composer]] 和 [https://github.com/composer/packagist packagist] | ||
==图集== | ==图集== | ||
<gallery> | <gallery> | ||
image:symfony-profiler.png|Profiler | image:symfony-profiler.png|Profiler | ||
+ | image:Symfony-CMF-Request-Flow.png|Symfony CMF请求流 | ||
+ | image:sylius-architecture.png|Sylius | ||
</gallery> | </gallery> | ||
==链接== | ==链接== | ||
*[http://symfony.com/ Symfony官网] | *[http://symfony.com/ Symfony官网] | ||
− | |||
*[http://symfony.com/doc/current/cookbook/index.html Symfony Cookbook] | *[http://symfony.com/doc/current/cookbook/index.html Symfony Cookbook] | ||
*[http://books.sensiolabs.com/ We publish Open-Source Books for demanding People] | *[http://books.sensiolabs.com/ We publish Open-Source Books for demanding People] | ||
第79行: | 第132行: | ||
[[category:PHP]] | [[category:PHP]] | ||
[[category:REST]] | [[category:REST]] | ||
+ | [[category:Huihoo Foundation]] |
2024年8月21日 (三) 05:34的最后版本
您可以在Wikipedia上了解到此条目的英文信息 Symfony Thanks, Wikipedia. |
Symfony
目录 |
[编辑] 简介
Symfony:一个强大、流行的 PHP 开源框架,采用 MIT 许可协议。
可重点关注这三个基于 Symfony 的开源项目:
- 营销,Mautic Open Source Marketing Automation Software.
- 电商,Sylius Open Source eCommerce Platform.
- 分析,Matomo is the leading Free/Libre open analytics platform.
[编辑] 功能
Symfony 的特色体现:Components、Bundles、Plugins,它们是Symfony扩展的基础。
Symfony2(以下简称SF2)是一款及其强大的PHP框架,可以说应该是PHP中最强大的框架了。就算PHP官方之框架Zend Framework(以下简称ZF2)也一直望尘莫及,并且从ZF2开始就一直模仿SF2,但是从未超越它。SF2具有强大的可扩展性,利用Bundle的概念使框架可以无限制扩展,乃至SF2本身就是一个Bundle,并且可以利用SF2来构成自己所需的PHP框架。SF2默认整合了Twig模板,Doctrine ORM等,可以说唯一具备了PHP本身的简洁,明析与速度快的优点也结合了Java领域框架的强大性和Ruby on Rails敏捷开发概念的全能型框架。目前世界最流行的CMS系统-Drupal的Drupal8版本也将采用Symfony2,可见其强大及灵活之处。
[编辑] 版本
- Symfony 6.0 需要 PHP 8.0.2 或以上
- Symfony 5.4 LTS 版本,需要 PHP 7.2.5 或以上
- Symfony 4.4 LTS 版本,需要 PHP 7.1.3 或以上
[编辑] 指南
$ curl -sS https://get.symfony.com/cli/installer | bash $ symfony -v $ symfony new myproject $ cd myproject/ $ symfony server:start http://localhost:8000 $ symfony server:stop
[编辑] Applications
Symfony Recipes Server Symfony Flex is the way to manage Symfony applications.
[编辑] Components
- Symfony security component
- Polyfill PHP 8.0 该组件在纯 PHP 代码中实现了某些 PHP 8.0 功能,以此提供了在 PHP 8.0 之前的版本中无法使用的功能。
- HttpKernel Component
- HttpFoundation Component
- HttpClient component
- Console Component
- Process Component
- Translation Component
- Routing Component
- Filesystem Component
- Form Component
[编辑] Bundles
- DoctrineMongoDBBundle Doctrine MongoDB Object Document Mapper (ODM)
- Johannes Schmitt
- FOSUserBundle
- FOSRestBundle
[编辑] Plugins
[编辑] 项目
- Symfony @ GitHub
- Sonata Project
- EasyAdmin
- Sonata Admin Bundle
- Sylius eCommerce solutions
- Elcodi for Symfony
- JMSPaymentCoreBundle
- HWIOAuthBundle
- Symfony API Sami: an API documentation generator
- Symfony CMF PHP Content Repository PHPCR
- Pimcore
- Drupal
- Bolt CMS
- phpBB
- Nextcloud
- OroPlatform
- OroCRM
- OroCommerce
- Marello
- Shopware
- Mautic Open Source Marketing Automation Software
[编辑] MediaWiki
将 MediaWiki 和 Symfony 更好的集成、融合在一起。
[编辑] Phabricator
将 Phabricator 和 Symfony 更好的集成、融合在一起。
[编辑] 分发版
[编辑] Books
- A Gentle Introduction to symfony 1.4 GNU Free Documentation License.
- More with symfony 1.3 & 1.4 Creative Commons Attribution-Share Alike 3.0 Unported License.
- Doctrine ORM for PHP (1.2) Creative Commons Attribution-Share Alike 3.0 Unported License.
- Practical symfony 1.3 & 1.4 for Propel Creative Commons Attribution-Share Alike 3.0 Unported License.
[编辑] 用户案例
[编辑] 图集
[编辑] 链接
分享您的观点