1. How to Quickly Implement an API using a PHP OpenAPI Parser that Can Generate Routes to Forward Requests to Command Handler Classes
Updated on: 2021-03-19
Posted on: 2021-03-19
Blog: PHP OpenAPI Dispatcher package blog
Package: PHP OpenAPI Dispatcher
Read this tutorial to learn how you can quickly implement an API from an OpenAPI specification file and command handler classes that you develop to handle the API requests without much development effort.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement PHP Jira API to Access to Projects Hosted in the Jira Platform
Updated on: 2021-03-18
Posted on: 2021-03-18
Blog: Mezon PHP Jira API client package blog
Package: Mezon PHP Jira API client
This package provides a solution inquire details of projects managed inside the Jira platform from a PHP application.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement a PHP Bootstrap Form Generator Reading its Configuration from a JSON File
Updated on: 2021-03-17
Posted on: 2021-03-17
Blog: PHP JSON Form Generator for Bootstrap package blog
Package: PHP JSON Form Generator for Bootstrap
One way to provide nice and modern presentation of the forms in the Web pages, is to use the Bootstrap CSS library.
This class provides a solution that can read a JSON configuration file with the definition of the form inputs and other details, like for instance, the Bootstrap CSS classes that should be used to render the forms.
This way, a developer can define both the form inputs and their presentation details in a single configuration file.
More ... Post a comment See comments (0) Trackbacks (0)
1. How Can PHP Read HTTP Response Headers of a Remote Site to Test if It is Working Well
Updated on: 2021-03-16
Posted on: 2021-03-16
Blog: PHP HTTP Headers Information package blog
Package: PHP HTTP Headers Information
One way to perform such kind of check is to send a HTTP request to the site URL and verify if it responds the way that it is expected when the site is working well.
Read this short tutorial article to learn how to quickly check a remote site retrieving the HTTP header responses.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement a Laravel JSON API that Only Allows Clients that Request JSON Responses
Updated on: 2021-03-15
Posted on: 2021-03-15
Blog: Laravel JSON Request Validation package blog
Package: Laravel JSON Request Validation
JSON is nowadays a common format to serve HTTP responses with data values represented as text.
When an API application is only meant to serve JSON based responses, it is useful to refuse serving requests from clients that are not ready to take JSON based responses, like for instance requests from regular browsers that expect HTML pages.
This package provides a solution that can be used in Laravel based applications to refuse serving HTTP requests from clients that are not ready to handle JSON based responses.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Fix PHP UTF8 Encoding that was Applied to Text Strings More Than Once By Mistake
Updated on: 2021-03-12
Posted on: 2021-03-12
Blog: PHP Convert UTF8 to Latin1 UTF8 Encoded package blog
Package: PHP Convert UTF8 to Latin1 UTF8 Encoded
However, due to programming mistakes, the application may encode the text again as UTF-8, when it was already encoded as UTF-8. This mistake is called double-encoding.
To fix the text that was double encoded, it it is necessary to revert the last step of encoding of the characters.
This class provides a solution, that not only can undo the double-encoding mistake, but it is also able to detect the encoding of a given text, so you can evaluate what encoding it is using.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement a PHP Image Classification System by Recognizing Relevant Objects in Pictures
Updated on: 2021-03-11
Posted on: 2021-03-11
Blog: Darknet PHP Image Recognition Library package blog
Package: Darknet PHP Image Recognition Library
This package provides a solution for recognizing objects in pictures using the Darknet library to implement the YOLO (You Only Look Once) algorithm.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement a Better PHP Arabic Text Display Solution
Updated on: 2021-03-10
Posted on: 2021-03-10
Blog: PHP AWR class package blog
Package: PHP AWR class
Read this article to learn how to solve the challenges of displaying text in Arabic using the AWR class.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Create a Fast Pure PHP HTTP Server using ReactPHP
Updated on: 2021-03-09
Posted on: 2021-03-09
Blog: Simple React PHP HTTP Server package blog
Package: Simple React PHP HTTP Server
This allows applications to make more efficient use of the server machine CPUs, by executing tasks in parallel, while other tasks are waiting for a response from an external process or system, like for instance, a database server that takes time to a execute a query.
This package takes advantage of the ReactPHP library asynchronous programming features to implement an efficient custom HTTP server totally written in PHP.
The package allows developers to create Web applications just by creating handler functions or controller classes that process the requests for specific URLs and return the responses.
This way, PHP developers can write pure PHP Web applications without needing to use external Web server applications.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement Better PHP REST API Exception Handling Adding More Details About the Exception Context
Updated on: 2021-03-06
Posted on: 2021-03-06
Blog: Mezon REST Exception package blog
Package: Mezon REST Exception
Usually exception classes carry information about the errors that includes an error message and an error code that can be useful to help applications to treat the errors in a a more convenient way for its users.
This package extends the information that is usually stored in an exception class. It adds details like the HTTP status code, request body and request URL, which may be useful for instance to generate error logs for applications that implement APIs.
More ... Post a comment See comments (0) Trackbacks (0)