Skip to content

SONize v1.5.1 - Easy Syntax and Efficient Memory Usage

Compare
Choose a tag to compare
@alirezajavadigit alirezajavadigit released this 27 Jun 22:29
· 16 commits to main since this release

JSONize v1.5.1 - Easy Syntax and Efficient Memory Usage

Release Date: June 28, 2024

What's New:

  • Easy Syntax for Quick Usage:

    • Introduced a new easy-to-use syntax for rapid JSON response generation.
    • Example:
      use JSONize\App\Easy\Response;
      
      Response::message("Deleted Successfully");
  • Efficient Memory Usage:

    • Added efficient memory usage feature with singleton pattern.
    • Example:
      use JSONize\App\Efficient\Response;
      
      $response = Response::getInstance();
      $response->message("Deleted Successfully")->end();
  • Expanded HTTP Status Handling:

    • Now supports all 3xx redirect status codes.
  • Improved JSON Response Formatting:

    • Enhanced structure for better readability and consistency.
  • New Traits Added:

    • Introduced HasStatus and MethodCaller traits for dynamic method calls and enhanced status management.
  • Singleton Implementation:

    • Ensured controlled instance creation with the new Singleton trait.
  • Bug Fixes:

    • Corrected method naming inconsistencies and fixed HTTP status call issues in HasStructure.

Contributing

Contributions are welcome! Everyone who wants to contribute can add new HTTP status codes to this file: System/Traits/HasStatus.php. Submit a pull request or open an issue for any problems or suggestions.

Upgrade now to streamline your JSON responses!