PHP Classes blog

Recommend this page to a friend!

Latest PHP Classes blog posts

  All package blogs All package blogs   Blog PHP Classes blog   Post article Post article  
  1343 - 1334   ...   1323 - 1314   1313 - 1304   1303 - 1294   1293 - 1284   1283 - 1274   1273 - 1264   1263 - 1254   1253 - 1244   1243 - 1234   1233 - 1224   1223 - 1214   1213 - 1204   ...   3 - 1  

1. How to Quickly Implement an API using a PHP OpenAPI Parser that Can Generate Routes to Forward Requests to Command Handler Classes

Blog: PHP OpenAPI Dispatcher package blog
Package: PHP OpenAPI Dispatcher

OpenAPI is an opensource specification that lets you define an API from a description file. Using tools available online that support OpenAPI, you can test and validate your API very quickly.

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Implement PHP Jira API to Access to Projects Hosted in the Jira Platform

Blog: Mezon PHP Jira API client package blog
Package: Mezon PHP Jira API client

Jira is a well known project management platform that helps many developers to manage projects within a team.

This package provides a solution inquire details of projects managed inside the Jira platform from a PHP application.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Implement a PHP Bootstrap Form Generator Reading its Configuration from a JSON File

Blog: PHP JSON Form Generator for Bootstrap package blog
Package: PHP JSON Form Generator for Bootstrap

Many applications need to present forms in their pages to request that their users enter data relevant to the application.

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How Can PHP Read HTTP Response Headers of a Remote Site to Test if It is Working Well

Blog: PHP HTTP Headers Information package blog
Package: PHP HTTP Headers Information

Sometimes it is necessary to check if a remote site is working as expected.

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Implement a Laravel JSON API that Only Allows Clients that Request JSON Responses

Blog: Laravel JSON Request Validation package blog
Package: Laravel JSON Request Validation

There are certain types of applications, like for instance APIs, that only serve data values as responses.

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Fix PHP UTF8 Encoding that was Applied to Text Strings More Than Once By Mistake

Blog: PHP Convert UTF8 to Latin1 UTF8 Encoded package blog
Package: PHP Convert UTF8 to Latin1 UTF8 Encoded

Sometimes applications store text that was given by the application users using UTF-8 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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Implement a PHP Image Classification System by Recognizing Relevant Objects in Pictures

Blog: Darknet PHP Image Recognition Library package blog
Package: Darknet PHP Image Recognition Library

Neural networks are means to implement artificial intelligence solutions that are based on learning patterns and recognizing them, like for instance recognizing a certain type of object in a picture.

This package provides a solution for recognizing objects in pictures using the Darknet library to implement the YOLO (You Only Look Once) algorithm.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Implement a Better PHP Arabic Text Display Solution

Blog: PHP AWR class package blog
Package: PHP AWR class

Rendering text in the Arabic language is a challenge because not only it requires displaying text using letters of an alphabet that is distinct from the Latin alphabet, but it also requires rendering text from the right side to the left.

Read this article to learn how to solve the challenges of displaying text in Arabic using the AWR class.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Create a Fast Pure PHP HTTP Server using ReactPHP

Blog: Simple React PHP HTTP Server package blog
Package: Simple React PHP HTTP Server

ReactPHP is a popular PHP library that can be used to develop application using asynchronous programming.

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Implement Better PHP REST API Exception Handling Adding More Details About the Exception Context

Blog: Mezon REST Exception package blog
Package: Mezon REST Exception

Exceptions are special kind of class that is useful to pass details of errors that may happen within an application.

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

  1343 - 1334   ...   1323 - 1314   1313 - 1304   1303 - 1294   1293 - 1284   1283 - 1274   1273 - 1264   1263 - 1254   1253 - 1244   1243 - 1234   1233 - 1224   1223 - 1214   1213 - 1204   ...   3 - 1  
  All package blogs All package blogs   Blog PHP Classes blog   Post article Post article  

For more information send a message to info at phpclasses dot org.