Releases: dconco/php_slides
v1.2.2 - Completed middleware and API controller 📌
Changes Logs v1.2.2
Tue, July 02 2024
- Added
asset()
function inFunctions.php
file, and can distinguish to start path from relative path or root path RouteController.php
inslides_include()
function.- Removed
::view
and::root
string and it's functions. - Added
__ROOT__
constant - Updated slides_include file to auto clone a file to a generated file.
- Can now use normal relative path in
slides_include()
function. - Improved in Route Map function, can now use
name()
method in any position. - Updated Request URL to match both uppercase and lowercase
- Renamed
/routes/route.php
to/routes/web.php
- Added named route function to normal route method
POST
,GET
,PATCH
,PUT
,DELETE
,VIEW
.
Tue, July 09 2024
- Change all file names to CamelCase
- Added configuration for Console
- Added Console template for Controller, ApiController, Middleware.
Thursday, July 11 2024
- Added Authorization method for getting Basic and Bearer token.
Saturday, July 13 2024
- Completed API Controller function.
- Completed middleware function.
Tuesday, July 16 2024
- Worked on controller and Middleware
- Added mapping method in Api controller
- Api controller now accepts naming route in mapping method.
Friday, July 19 2024
- Make API
define()
method now working withroute()
method - Work on
route()
so when usingdefine()
withroute()
they can pass second parameter inroute()
as controller method for the defined route - Added more methods to
Request
class - Added documentation to each methods in Request class and interface with Api class and interface
- Added more version methods API class manually.
- Added more version methods to API interface manually.
Completed -v1.2.1
Completed -v1.2.1
- Added special map route method
Updated to version v1.2.1-alpha pre-release - Fix Error and Bugs in `slides_include()`
Updated to version v1.2.1-alpha pre-release
-
Fix Error and Bugs in
slides_include()
-
Make
<? ?>
slides php tag to be more effective. -
@view
in the slides php tag are nowdeprecated
at version 1.2.1 pre-release and latest. -
Make all the
<include !/>
elements be more effective -
All <include !/>
elements will be replaced with
slides_include()` -
Added Short Icon
-
Updated Short Icon url in
Header.php
-
Arrange styles in
App.css
toHeader.php
-
Now auto generating
bin
folder with the files inApp
directory. -
Can now define a constant in
web.php
and use it inapi.php
which is available from version 1.2.1 and upcoming latest versions. -
From version 1.2.1 can no longer use the same class namespace for routes and api.
-
Make
ApiController.php
to acceptinteger
as it's method parameter andstring
types are nowdeprecated
. -
ApiController.php
method parameter now accepts integer constant.
Version 1.1.0 released. Added slides_include functions
v1.1.0 Create composer.json
Version 1.2.0 - Added API routes & API controller class
Feat: Worked on Api v1.2.0,
- Worked on src/web.php to register api route class controller
- Worked on routes/api.php to register new Api route
- Created ApiController to which handles Api routings
With controller for Api routings
PhpSlides version 1.0.0 release
feat: Update configuration and file handling
This commit updates the configuration settings in the .env file to use
consistent spacing and adds new environment variables for the default
host page. Additionally, it modifies the RouteController class to
improve file handling by using the file_get_contents function instead of
include, making it easier to manipulate content before output.
The commit also includes modifications to the Route class:
- It introduces a new static variable, $root_dir, to store the root
directory path. - It adds a check for the presence of the 'fileinfo' extension and
throws an exception if it is not enabled. - It refactors the file_type method to utilize the finfo_file function
instead of mime_content_type for improved performance. - It updates the handling of file extensions for better content type
detection. - It sets the $log and $root_dir variables within the class constructor
for consistency.
The commit also includes minor updates to other files, such as the
README.md and composer.json, correcting typos and improving clarity.
These changes enhance the configuration and file handling aspects of the
project, improving efficiency and providing more control over the
output. No issues are associated with this commit at this time.
References: None