PHP Classes

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  
  1449 - 1440   ...   1319 - 1310   1309 - 1300   1299 - 1290   1289 - 1280   1279 - 1270   1269 - 1260   1259 - 1250   1249 - 1240   1239 - 1230   1229 - 1220   1219 - 1210   1209 - 1200   ...   9 - 1  

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

Updated on: 2021-03-15

Posted on:

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

Updated on: 2021-03-12

Posted on:

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

Updated on: 2021-03-11

Posted on:

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

Updated on: 2021-03-10

Posted on:

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

Updated on: 2021-03-09

Posted on:

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

Updated on: 2021-03-06

Posted on:

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)

1. How to Implement a PHP GitHub API Client to Access Github Web Services

Updated on: 2021-03-05

Posted on:

Blog: Github PHP API Library package blog
Package: Github PHP API Library

Github is a very popular site among developers of many programmers languages, as it can be used to host repositories of code that can be accessed with the Git version control tool.

An alternative way to access the project files in Github is to use its API.

Read this article to learn how you can easily access this project files hosted in Github using PHP without having to use the Git tool.


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

1. How to Implement a PHP Companies Check Solution to Validate Legitimate Business

Updated on: 2021-03-04

Posted on:

Blog: PHP Companies Lookup package blog
Package: PHP Companies Lookup

Many business need to support other companies in a secure way. Usually they need to verify if those other companies are legitimate and are active.

This package provides a solution to perform such kind of verification in quick and easy way by accessing the Companies House Database API available for companies in the United Kingdom.

This way, this package can simplify the process of companies work with other companies with greater security.


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

1. How to Quickly Display the License of a PHP Creative Commons Project in a Web Page

Updated on: 2021-03-02

Posted on:

Blog: PHP Creative Commons Logo package blog
Package: PHP Creative Commons Logo

Creative Commons is a popular license used by many developers to release their software to the public and allow royalty free used with minimal licensing requirements.

There are several variants of the Creative Commons licenses.

This class provides a solution to display the logo image of a Creative Commons license variant in a Web page with a link to the respective page on the Web with the details of that license.

This may be useful to many developers that display the creative commons license logo link in a Web page of their Open Source projects.


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

1. How to Implement Secure PHP Hashing Algorithms to Detect When Sensitive Data May Have Been Altered Without Your Permission

Updated on: 2021-03-01

Posted on:

Blog: PHP Hash Blake2 package blog
Package: PHP Hash Blake2

Blake is a hashing algorithm used to create hash values from sets of data.

The hash values can be used to verify if a given data block was modified during an eventual security attack.

Such security attacks are usually aimed to alter data or programs that could make them work in a dangerous way for the users that receive that data or programs.

This package provides a pure PHP solution to implement the Blake 2 hashing algorithm.


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

  1449 - 1440   ...   1319 - 1310   1309 - 1300   1299 - 1290   1289 - 1280   1279 - 1270   1269 - 1260   1259 - 1250   1249 - 1240   1239 - 1230   1229 - 1220   1219 - 1210   1209 - 1200   ...   9 - 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.