Skip to content

Version 2

Latest
Compare
Choose a tag to compare
@bigonese bigonese released this 27 Oct 15:53
· 1 commit to master since this release

Version 2 brings various improvements to the code base (some of which break backwards compatibility).

New Features and Improvements:

  • New set of cryptography classes (Crypto, CryptoKey and CryptoPackage) completely replacing the old Crypto class
    • Switched to an OpenSSL implementation for more secure implementation and better alignment with standards
    • More secure key generation
    • Support for both private/public encryption (RSA) and symmetric (AES) encryption
    • CryptoPackage features methods for encrypting large strings/objects with private/public keys by using both AES (for large strings) and RSA (for encrypting the encryption key, as encrypting large strings is prohibitively inefficient)
  • New features for the Router class, including nested routes and order-indifferent definition of error handling routes (i.e., put the error handling route at the end of all other route calls, if you like)
  • New DatabaseObject::findBy() method for searching for database data on columns other than the primary key
  • Readme.md was further expanded and improved, documenting more classes
  • Entire library is validated against the PSR-2 code formatting standard
  • Switched to PSR-4 autoloader
  • Added require-dev package to composer.json for test binary requirements

Bug Fix:

  • The DatabaseObject::save() incorrectly used all column names in the SQL WHERE clause instead of just the primary key