Symfony

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(项目)
(版本)
 
(未显示1个用户的22个中间版本)
第1行: 第1行:
 
{{SeeWikipedia}}
 
{{SeeWikipedia}}
[[Image:Symfony-logo.gif|right]]
 
  
symfony: an open-source PHP5 web framework
+
[[Image:symfony-logo.png|right|Symfony]]
  
Symfony的特色体现:Components、Bundles、Plugins,它们是Symfony扩展的基础。
+
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:一个强大、流行的[[PHP]]开源框架,采用MIT许可协议。
+
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,可见其强大及灵活之处。
  
 
==版本==
 
==版本==
*[https://symfony.com/4 Symfony 4]
+
[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 -LsS http://symfony.com/installer > symfony.phar
+
  $ curl -sS https://get.symfony.com/cli/installer | bash
$ sudo mv symfony.phar /usr/local/bin/symfony
+
$ chmod a+x /usr/local/bin/symfony
+
 
  $ symfony -v
 
  $ symfony -v
 
  $ symfony new myproject
 
  $ symfony new myproject
 
  $ cd myproject/
 
  $ cd myproject/
  $ php app/console server:run
+
  $ symfony server:start
 
  http://localhost:8000
 
  http://localhost:8000
  $ php app/console server:stop
+
  $ 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]
 
*[[Symfony security component]]
 
*[[Symfony security component]]
*[http://symfony.com/doc/current/components/routing/introduction.html The Routing Component]
+
*[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]
 
*[http://jmsyst.com/bundles/ Johannes Schmitt]
第41行: 第62行:
 
==项目==
 
==项目==
 
[https://github.com/sitepoint/awesome-symfony Awesome Symfony] [[image:awesome.png]]
 
[https://github.com/sitepoint/awesome-symfony Awesome Symfony] [[image:awesome.png]]
 +
[[文件:Pimcore-logo-readme.png|right|Pimcore]]
 
*[https://sonata-project.org/ Sonata Project]
 
*[https://sonata-project.org/ Sonata Project]
*[https://github.com/javiereguiluz/EasyAdminBundle EasyAdmin]
+
*[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] eCommerce solutions
 
*[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/FriendsOfSymfony/FOSUserBundle FOSUserBundle]
 
*[https://github.com/FriendsOfSymfony/FOSRestBundle FOSRestBundle]
 
 
*[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] [https://github.com/phpcr/phpcr PHP Content Repository PHPCR]
 
*[http://cmf.symfony.com/ Symfony CMF] [https://github.com/phpcr/phpcr PHP Content Repository PHPCR]
 +
*[[Pimcore]]
 +
*[[Drupal]]
 +
*[https://github.com/bolt Bolt CMS]
 
*[[phpBB]]
 
*[[phpBB]]
 +
*[[Nextcloud]]
 
*[[OroPlatform]]
 
*[[OroPlatform]]
 
*[[OroCRM]]
 
*[[OroCRM]]
第58行: 第82行:
 
*[[Marello]]
 
*[[Marello]]
 
*[https://github.com/shopware/platform Shopware]
 
*[https://github.com/shopware/platform Shopware]
 +
*[https://github.com/mautic/mautic Mautic] Open Source Marketing Automation Software
  
 
==MediaWiki==
 
==MediaWiki==
第71行: 第96行:
 
*[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]
*[https://github.com/api-platform/api-platform The API Platform framework]
+
*[[API Platform]]
 
*[https://github.com/symfony-cmf/standard-edition Symfony CMF Standard Edition]
 
*[https://github.com/symfony-cmf/standard-edition Symfony CMF Standard Edition]
  
第80行: 第105行:
 
*[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]
  
 
==图集==
 
==图集==
第85行: 第115行:
 
image:symfony-profiler.png|Profiler
 
image:symfony-profiler.png|Profiler
 
image:Symfony-CMF-Request-Flow.png|Symfony CMF请求流
 
image:Symfony-CMF-Request-Flow.png|Symfony CMF请求流
 +
image:sylius-architecture.png|Sylius
 
</gallery>
 
</gallery>
  
第101行: 第132行:
 
[[category:PHP]]
 
[[category:PHP]]
 
[[category:REST]]
 
[[category:REST]]
[[category:huihoo]]
+
[[category:Huihoo Foundation]]

2022年3月24日 (四) 05:19的最后版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Symfony Thanks, Wikipedia.
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,可见其强大及灵活之处。

[编辑] 版本

Symfony Releases

[编辑] 指南

$ 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 Components

[编辑] Bundles

FriendsOfSymfony

[编辑] Plugins

Plugins 针对 Symfony 1.x

[编辑] 项目

Awesome Symfony Awesome.png

Pimcore

[编辑] MediaWiki

MediaWiki 和 Symfony 更好的集成、融合在一起。

[编辑] Phabricator

Phabricator 和 Symfony 更好的集成、融合在一起。

[编辑] 分发版

Symfony Distributions

[编辑] Books

Free books

[编辑] 用户案例

Case Studies

[编辑] 图集

[编辑] 链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱