Introduction to Flow3

1,251 views

Published on

The Presentation was hold during BarCamp Phnom Penh 2011.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,251
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to Flow3

  1. 1. Keo VisayCertified TYPO3 IntegratorHead of TYPO3 Cambodia CommunityFrom Takhmao, KandalLike TYPO3 CodingWorking at Web Essentials
  2. 2. Web Essentials Team
  3. 3. What is FLOW3?
  4. 4. What is FLOW3?PHP-based Web Application PlatformCreates excellent web solutionsFast results!keep your head clear and let you focus on the essential partsReliable foundation for complex applications
  5. 5. Why FLOW3?Well-suited for enterprise-grade applicationsEasy-to-read source codeStability, Security, PerformanceUser experienceBacked by one of the biggest PHP communities (6000+ contributors)
  6. 6. FLOW3 Core Team
  7. 7. FLOW3 Advanced FeaturesSupports Domain-Driven DesignObject Persistence with Doctrine2Test-Driven DevelopmentContinuous IntegrationDependency InjectionFoundation for the TYPO3 Content Management SystemStandalone packages of FLOW3 can turn to TYPO3 CMS plugins easily
  8. 8. FLOW3 – The Rocket Science
  9. 9. FLOW3 Framework Submodules
  10. 10. FLOW3 – The Rocket Science
  11. 11. RequirementsServer Environment Supported Operating Systems: Linux Mac OSX Windows
  12. 12. Requirements Supported HTTP server platforms: Apache 2 (recommended) NGINX (experimental) IIS (experimental)
  13. 13. Requirements PHP: Requires PHP 5.3.2 or higher Supported Database Systems: All systems supported by Doctrine2 can be used with FLOW3
  14. 14. InstallationDownload http://flow3.typo3.org/download.htmlSetting correct file permission ./flow3 core:setfilepermissions visay www-data www-dataAdd command line user to the web server group sudo usermod -a -G www-data visay
  15. 15. Installation <VirtualHost *:80>Configure your VirtualHost DocumentRoot /var/www/barcamp/Web/ ServerName barcamp.flow3 SetEnv FLOW3_CONTEXT Development <Directory /var/www/barcamp/> AllowOverride AllTesting your installation </Directory> <IfModule mod_negotiation.c> # prevents Apaches automatic file negotiation, it breaks resource URLs Options -MultiViews </IfModule> </VirtualHost>
  16. 16. FLOW3 Welcome Screen
  17. 17. Demo ApplicationThe Blog Example
  18. 18. Kickstart Your First Application ./flow3 kickstart:package Visay.Demo Packages/ Application/ Visay.Demo/ Classes/ Configuration/ Meta/ Resources/ Tests/
  19. 19. Hello World?Packages/Application/Visay.Demo/Classes/Controller/
  20. 20. User Input
  21. 21. Database SetupConfiguration/Settings.yaml
  22. 22. Doctrine Migrate./flow3 doctrine:migrate
  23. 23. Storing Objects./flow3 kickstart:actioncontroller --generate-actions --generate-related Visay.Demo Customer Created .../Visay.Demo/Classes/Domain/Model/Customer.php Created .../Visay.Demo/Classes/Domain/Repository/CustomerRepository.php Created .../Visay.Demo/Classes/Controller/CustomerController.php Created .../Visay.Demo/Resources/Private/Layouts/Default.html Created .../Visay.Demo/Resources/Private/Templates/Customer/Index.html Created .../Visay.Demo/Resources/Private/Templates/Customer/New.html Created .../Visay.Demo/Resources/Private/Templates/Customer/Edit.html Created .../Visay.Demo/Resources/Private/Templates/Customer/Show.html
  24. 24. Application ContextThe FLOW3 Framework can be launched in different application contexts (a setof configuration) Production Development Testing Staging More contexts may be defined by just adding configuration
  25. 25. PackagesFLOW3 is a package-based system, even FLOW3 itself Packages act as a container for different matters Contain PHP code which adds certain functionality Contain documentation Consist of templates, images or other resources.
  26. 26. Application Fine-tuning Form validation Action Route Route Part Handlers
  27. 27. Questions ???
  28. 28. References http://flow3.typo3.org/
  29. 29. Thank you!

×