Skip to content

Releases: SonyPradana/php-library

Minor Update 0.9

24 Jun 13:14
Compare
Choose a tag to compare

What's Changed

Changelog

Added

  • Added Facede::class abstract class.
  • Added System\Support\Facedes\DB::class and System\Support\Facedes\PDO::class
  • Added MyPDO::instance.
  • Added CrossJoin::class query builder for join table query.

Changed

  • PHPStan level 6 for System\Database exclude MyModel::class.

Removed

  • Remove MyQuery::getInstance.

Full Changelog: v0.8.0...v0.9.0

Minor Update 0.8

17 Jun 11:03
Compare
Choose a tag to compare

What's Changed

Changelog

Added

  • Added Str::limit for trucate text.
  • Added FileMultyUpload::class for handle multy files upload.
  • Added UploadFile::class support test UploadFile::markTest with use copy instance of move_uploaded_file.
  • Added UploadFile::get for get file content of uploaded file.

Changed

  • Changed UploadFile::folder_location not provide $_SERVER['root'].
  • Changed UploadFile::Success to UploadFile::success.
  • Changed visibility Time::class to prevent ilegal changes property witch make property not sync.

Security

  • Folder location check UploadFile::setFolderLocation.
  • File extention check UploadFile::validate.

Fixed

  • File size check UploadFile::validate always passed.

Full Changelog: v0.7.1...v0.8.0

Path Update ver 0.7.1

09 Jun 13:32
Compare
Choose a tag to compare

[0.7.1] - 2022-06-09

What's Changed

Added

  • Added Str::fill(), Str::fillEnd() and Str::mask().
  • Added Text::fill(), Text::fillEnd() and Text::mask().

Fixed

  • Fixed MyCRUD::setter() check MyCRUD::RESISTANT always true.
  • Fixed MyCRUD::getLastInsertID() cant set default id (if id is empty).
  • Fixed MyPDO::transaction return MyPDO::beginTransaction without run callable function.

Changed

  • Changed Str::class to final class.
  • Changed Select::class to final class.
  • Changed Application::class to final class.
  • Changed RouteDispatcher::class to final class.
  • Changed ServiceProvider::__construct() param from Container::class to Application::class.
  • Changed View::render throw exception when file not found.

Security

  • MyModel::call(), Unsafe usage of new static().
  • MyPDO::$Instance, Unsafe usage of new static().
  • AbstractJoin::ref(), Unsafe usage of new static().
  • Controller::static(), Unsafe usage of new static().
  • Router::getRoutes(), Call to an undefined method System\Router\Route::route().

Full Changelog: v0.7.0...v0.7.1

Realeas version 0.7.0

06 Jun 15:32
Compare
Choose a tag to compare

[0.7.0] - 2022-06-06

  • Change composer require php version 7.4 and 8.0.
  • Added MyPDO::config() PDO connection configure.

What's Changed

Full Changelog: v0.6.2...v0.7.0

Realeas version 0.6.2

27 May 08:17
f59912b
Compare
Choose a tag to compare

[0.6.2] - 2022-05-27

Changed

  • New MyPDO::__construct params, using array contain database configuration.
  • MyPDO::getInstance() return single instance.
  • New MyPDO::__construct throwing error without call die function.

Removed

  • Remove database defineder (DB_NAME, DB_HOST, DB_USER, DB_PASS).

Fixed

  • Fixed Route::group can't combine middleware.

Realeas version 0.6.1

19 May 11:48
Compare
Choose a tag to compare

[0.6.1] - 2022-05-19

Added

  • Prevent duplicate middleware call.
  • Added method (Route::middleware) to call middleware individualy.

Changed

  • Change Router::middleware param form middleware object to middlewar class-name.
  • RouterGroup::group retrun as callback param.

Realeas version 0.6.0

16 May 01:19
Compare
Choose a tag to compare

[0.6.0] - 2022-05-15

Added

  • Add RouteDispatcher::class dispatch request route.

Changed

  • Router::class run throw RouteDispatcher::class.
  • View::render return as Respone::class.
  • respone->html(), respone->json(), respone->planText() no longger send respone. Its just set content type.

Realeas version 0.5.0

29 Apr 16:46
Compare
Choose a tag to compare

What's Changed

  • feat: add flush application by @SonyPradana in #6
  • feat: add register for service provider
  • feat: Application load register service provider before call boot method.

Realeas version 0.4.0

24 Apr 15:10
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.4.0

Realeas version 0.3.0

06 Apr 00:15
Compare
Choose a tag to compare

What's Changed

  • Added Collection->immutable class
  • Added Fetch->get() return as collection
  • Added uploadfile class
  • Added method close() to closed middleware
  • Add Router::prefix()->group() group router base on prefix.
  • Add Router::name()->group() group router base on name.
  • Add Router::midleware()->group() group router base on midleware.
  • Add Router::controller()->group() group router base on controller.
  • Add Router::group(array, closure) costume group.
  • Add Router::current() get current route.
  • Router group can be combine with other router group.

Full Changelog: v0.2.1...v0.3.0