Releases: SonyPradana/php-library
Releases · SonyPradana/php-library
Minor Update 0.9
What's Changed
- 0.9 by @SonyPradana in #24
- refactor: add exception class by @anggerpradana in #21
Changelog
Added
- Added
Facede::class
abstract class. - Added
System\Support\Facedes\DB::class
andSystem\Support\Facedes\PDO::class
- Added
MyPDO::instance
. - Added
CrossJoin::class
query builder for join table query.
Changed
- PHPStan level 6 for
System\Database
excludeMyModel::class
.
Removed
- Remove
MyQuery::getInstance
.
Full Changelog: v0.8.0...v0.9.0
Minor Update 0.8
What's Changed
- [Fixed] Support
Str::split
with empty sparator by @anggerpradana in #16 - Time visibility property by @anggerpradana in #17
- doc: added doc block by @anggerpradana in #18
- doc: added application docblock base on param by @anggerpradana in #19
- feat: add
Str::limit
for truncate by @anggerpradana in #20
Changelog
Added
- Added
Str::limit
for trucate text. - Added
FileMultyUpload::class
for handle multy files upload. - Added
UploadFile::class
support testUploadFile::markTest
with usecopy
instance ofmove_uploaded_file
. - Added
UploadFile::get
for get file content of uploaded file.
Changed
- Changed
UploadFile::folder_location
not provide$_SERVER['root']
. - Changed
UploadFile::Success
toUploadFile::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
[0.7.1] - 2022-06-09
What's Changed
- Support Static Analysis - PHPStan by @anggerpradana in #14
- Expand php test version by @anggerpradana in #15
Added
- Added
Str::fill()
,Str::fillEnd()
andStr::mask()
. - Added
Text::fill()
,Text::fillEnd()
andText::mask()
.
Fixed
- Fixed
MyCRUD::setter()
checkMyCRUD::RESISTANT
always true. - Fixed
MyCRUD::getLastInsertID()
cant set default id (if id is empty). - Fixed
MyPDO::transaction
returnMyPDO::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 fromContainer::class
toApplication::class
. - Changed
View::render
throw exception when file not found.
Security
MyModel::call()
, Unsafe usage ofnew static()
.MyPDO::$Instance
, Unsafe usage ofnew static()
.AbstractJoin::ref()
, Unsafe usage ofnew static()
.Controller::static()
, Unsafe usage ofnew static()
.Router::getRoutes()
, Call to an undefined methodSystem\Router\Route::route()
.
Full Changelog: v0.7.0...v0.7.1
Realeas version 0.7.0
[0.7.0] - 2022-06-06
- Change composer require php version
7.4
and8.0
. - Added
MyPDO::config()
PDO connection configure.
What's Changed
- feat: add string manipulation by @anggerpradana in #11
- feat: add common use regex by @SonyPradana in #12
- Cs fixer by @anggerpradana in #13
Full Changelog: v0.6.2...v0.7.0
Realeas version 0.6.2
[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 calldie
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
[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
[0.6.0] - 2022-05-15
Added
- Add
RouteDispatcher::class
dispatch request route.
Changed
Router::class
run throwRouteDispatcher::class
.View::render
return asRespone::class
.respone->html()
,respone->json()
,respone->planText()
no longger send respone. Its just set content type.
Realeas version 0.5.0
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
What's Changed
- feat: add method interpolate to excute log by @SonyPradana in #3
- feat: application container by @SonyPradana in #4
- fix: application require config file by @SonyPradana in #5
Full Changelog: v0.3.0...v0.4.0
Realeas version 0.3.0
What's Changed
- Maintenance code base by @SonyPradana in #2
- 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