Skip to content

Releases: dconco/php_slides

v1.2.2 - Completed middleware and API controller 📌

20 Jul 02:28
649f964
Compare
Choose a tag to compare

Changes Logs v1.2.2

Tue, July 02 2024

  • Added asset() function in Functions.php file, and can distinguish to start path from relative path or root path
  • RouteController.php in slides_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 with route() method
  • Work on route() so when using define() with route() they can pass second parameter in route() 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

29 Jun 17:12
6b9e4d0
Compare
Choose a tag to compare

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()`

03 Jan 18:12
f0b13f7
Compare
Choose a tag to compare

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 now deprecated at version 1.2.1 pre-release and latest.

  • Make all the <include !/> elements be more effective

  • All <include !/>elements will be replaced withslides_include()`

  • Added Short Icon

  • Updated Short Icon url in Header.php

  • Arrange styles in App.css to Header.php

  • Now auto generating bin folder with the files in App directory.

  • Can now define a constant in web.php and use it in api.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 accept integer as it's method parameter and string types are now deprecated.

  • ApiController.php method parameter now accepts integer constant.

Version 1.1.0 released. Added slides_include functions

16 Dec 07:42
da85243
Compare
Choose a tag to compare

Version 1.2.0 - Added API routes & API controller class

16 Dec 07:49
Compare
Choose a tag to compare

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

10 Dec 14:24
e84d4a3
Compare
Choose a tag to compare

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