Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Neevo – database abstraction       layer for PHP                     @smasty
Database problems in PHP• Inconsistence between DB  systems• No abstraction between PHP  and SQL• Hand-written SQL queries...
Solution:NeevoDatabase abstraction layer for PHP platform                                neevo.smasty.net                 ...
Main advantages• Easy to use             • Support for multiple DB• Lots of features          systems• Automated defence  ...
Architecture
Basic usage: SQL queries
SQL
PHP
Neevo
Connecting to the database
PHP – PostgreSQL & MySQL               Login credentials                    Connecting to the database
Neevo – reusable code                    Login credentials                    Connection in one line of code!
Conditional SQL queries
PHP      Conditional part      of the query
Neevo        Conditional part        of the query
Source code coverage                       191 unit tests                  11 integration tests
Scalability – custom DB driver
Diagnostic tools• Observer pattern: IObserver, IObservable  and their implementations• Info about queries:  – Result::expl...
Built-in support for Nette Framework
Configuration in config.neon
Usage in Presenter
DebugBar panel – Performed queries
Bluescreen panel – Error in query
The End.
Upcoming SlideShare
Loading in …5
×

Neevo - database abstraction layer for PHP

3,785 views

Published on

Introduction to Neevo - database abstraction layer for PHP 5.3+ (http://neevo.smasty.net)

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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:NeevoDatabase 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.

×