Successfully reported this slideshow.

Neevo - database abstraction layer for PHP

0

Share

Upcoming SlideShare
What to Upload to SlideShare
What to Upload to SlideShare
Loading in …3
×
1 of 24
1 of 24

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Related Audiobooks

Free with a 14 day trial from Scribd

See all

Neevo - database abstraction layer for PHP

  1. 1. Neevo – database abstraction layer for PHP @smasty
  2. 2. Database problems in PHP • Inconsistence between DB systems • No abstraction between PHP and SQL • Hand-written SQL queries • No automatic security solution
  3. 3. Solution: Neevo Database abstraction layer for PHP platform neevo.smasty.net github.com/smasty/Neevo
  4. 4. Main advantages • Easy to use • Support for multiple DB • Lots of features systems • Automated defence • Conditional queries against SQL Injection • Automated tests attacks • Diagnostic tools for • Sophisticated developers architecture • Easily scalable
  5. 5. Architecture
  6. 6. Basic usage: SQL queries
  7. 7. SQL
  8. 8. PHP
  9. 9. Neevo
  10. 10. Connecting to the database
  11. 11. PHP – PostgreSQL & MySQL Login credentials Connecting to the database
  12. 12. Neevo – reusable code Login credentials Connection in one line of code!
  13. 13. Conditional SQL queries
  14. 14. PHP Conditional part of the query
  15. 15. Neevo Conditional part of the query
  16. 16. Source code coverage 191 unit tests 11 integration tests
  17. 17. Scalability – custom DB driver
  18. 18. Diagnostic tools • Observer pattern: IObserver, IObservable and their implementations • Info about queries: – Result::explain() – EXPLAIN query – Statement::getTime() – duration of query execution
  19. 19. Built-in support for Nette Framework
  20. 20. Configuration in config.neon
  21. 21. Usage in Presenter
  22. 22. DebugBar panel – Performed queries
  23. 23. Bluescreen panel – Error in query
  24. 24. The End.

×