PHP Classes

All package blogs

Recommend this page to a friend!

Latest posts of all package blogs

  PHP Classes blog PHP Classes blog   Blog All package blogs  
  897 - 888   887 - 878   877 - 868   867 - 858   857 - 848   847 - 838   837 - 828   827 - 818   817 - 808   807 - 798   797 - 788   787 - 778   777 - 768   ...   7 - 1  

14. Learn with a PHP OAuth2 Example Google API Access From the Console

Updated on: 2023-11-01

Posted on:

Blog: PHP OAuth Library package blog
Package: PHP OAuth Library

Some applications need to access APIs from the console to perform background tasks using, for instance, the crontab available in Linux-based systems to execute jobs at scheduled times.

Read this article to learn how to develop PHP scripts that can get OAuth2-based tokens to access a Google API from the console or as a task executed by corn.

OAuth is a protocol often used to access API on behalf of a user that grants permissions to access the services of an API on behalf of that user.

This allows applications to call APIs even when the user is not present accessing a Web page.

This is possible because the OAuth protocol can be used by Web services to provide token string values that applications can use to access the APIs whenever they want, using a token string as evidence that the user granted permission to access the APIs anytime the application runs.

So, what applications need to do to access an API from a console or a task started with the cron tool is to obtain that token string.

That needs to happen with the presence of the user. The user needs to go to a page of the application. There, the user browser is redirected to a page of the API service provided. The user is requested to permit the application to perform specific actions by calling the API.

[OAuth permission request page image]

After the user provides the requested permissions, the user's browser is redirected back to the application page. Then, the application calls the API following the OAuth protocol to retrieve the access token.

[OAuth application page showing the access token image]

From now on, the application can use the access token to perform API calls to which the user gave permission.


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

1. How to Implement a PHP CRUD App using AppML to Model the Appplication

Updated on: 2023-10-30

Posted on:

Blog: AppML PHP CRUD package blog
Package: AppML PHP CRUD

AppML is a modeling language that allows developers to define Forms, Lists, Reports, Filters, Functions, and Databases.

It can help developers separate the application user interface definition from the application implementation in HTML, JavaScript, and CSS on the browser side.

This package provides an example application demonstrating how to implement a Web application using AppML to model the application and PHP to implement server-side integration with a database.


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

1. How to Implement a PHP PostgreSQL Show Tables Relationship Tool to Help Developers Implement Database Application Features

Updated on: 2023-10-27

Posted on:

Blog: PHP PostgreSQL Show Table Relationships package blog
Package: PHP PostgreSQL Show Table Relationships

Many software projects use relational databases like PostgreSQL to store and retrieve information used by those projects.

As the projects are developed, database schema usually evolves to store more information structures to support new features.

That database schema evolution process usually includes adding more database tables and relationships between them.

Naturally, developers remember the whole table structure of complex databases.

This package implements a tool that allows developers to remember the relations between tables of a PostgreSQL database.

This possibility helps developers to be better prepared to develop new features that involve database table relationships.


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

1. How to Implement a PHP File Hosting Application That Allows Users to Share Files For a Limited Period

Updated on: 2023-10-26

Posted on:

Blog: Temporary PHP File Hosting package blog
Package: Temporary PHP File Hosting

File-sharing sites are helpful to allow users to send files that would be too large to share by other means, like, for instance, email messages or chat applications like Facebook Messenger, WhatsApp, Google Chat, or others.

Usually, the files shared using file-sharing sites only need to be shared for a short period so the users who need to access those files can download them.

This package provides a simple file-sharing Web application that allows users to upload and download files.

The shared files will only be available for a limited period.


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

1. How to Implement a PHP Financial Frauds Detection System Using Benford's Law

Updated on: 2023-10-25

Posted on:

Blog: PHP Benford's Law package blog
Package: PHP Benford's Law

Benford's Law algorithm can detect the probability of fraud in a data set of values used in financial transactions.

The PHP Benford's package implements this algorithm in PHP applications.

Read this short tutorial article to learn how to use this package to implement financial fraud detection in your PHP applications using the example code from this article.


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

1. How to Implement a PHP Exchange Rate API Proxy to Get Exchange Rates Faster

Updated on: 2023-10-24

Posted on:

Blog: PHP Exchange Rate API Proxy package blog
Package: PHP Exchange Rate API Proxy

Many developers are interested in finances and currency exchange rates.

Some services provide information about currencies via their APIs.

This package implements a currency exchange rate that supports FIAT and virtual coin currencies using other currency exchange rate service APIs.

The package uses a database to store the retrieved information to avoid making repeated requests to remote APIs to get the same information within short periods.

This way, it acts as a proxy to make access to the currency exchange rates faster.


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

1. PHP API Example That Implements CRUD Operations on MongoDB Database Records

Updated on: 2023-10-23

Posted on:

Blog: PHP MongoDB CRUD Example of API package blog
Package: PHP MongoDB CRUD Example of API

MongoDB is a popular NoSQL database that stores information records in a document database.

This package provides an example application that shows how to implement a Web services API that can perform CRUD (Create, Retrieve, Update, and Delete) operations on records of information stored in a MongoDB database.


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

1. How Can PHP Sanitize Form Data to Fix Common User Mistakes Automatically

Updated on: 2023-10-20

Posted on:

Blog: PHP Sanitize Object package blog
Package: PHP Sanitize Object

Secure PHP applications must be careful with the values passed to the PHP code from external sources they do not control, such as the parameters passed to PHP via HTTP requests.

When the user enters the values, for instance, in a form, it may be necessary to tell the user to fix invalid values submitted via forms so that the values can comply with applicable rules.

For simple user mistakes, such as incorrect use of the case of words of a person's name, it may be more user-friendly to make the PHP code fix the issue of the letters rather than making the user select the case of the person's name.

This package can do that kind of automatic fixing of values passed to the PHP application by sanitizing important data object classes according to the rules defined in the comments of those classes.

This way, the user will not be bothered to fix the values entered in the forms, and those values will be compliant with the PHP application rules.


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

1. How to Use PHP Arrays to Implement Lists with Keys that Can Only Be Set Once and Can Have Default Values

Updated on: 2023-10-19

Posted on:

Blog: Yii2 Array Storage package blog
Package: Yii2 Array Storage

Arrays are a frequently used data type that PHP developers use in their code.

Often, associative arrays are used to store lists of values.

This package provides an alternative class that implements lists of values that can assume default values when retrieving list values that are not set.

It can also prevent setting a list value that is already set.

These features allow the implementation of more restricted lists of values in PHP.


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

2. More Details on How to Use a Wordpress Plugin Comments Spam Detection and Blocking using ChatGPT

Updated on: 2023-10-18

Posted on:

Blog: Wordpress ChatGPT Ban Spam Comments package blog
Package: Wordpress ChatGPT Ban Spam Comments

Detecting and blocking spam comments in a WordPress blog is a tedious task that may consume a lot of time when the blog administration needs to do it manually.

Fortunately, you can use a more automated way to make it more efficient using a ChatGPT API plugin to automatically detect and block spam comments.

Read this short tutorial article to learn how to block spam comments automatically using this WordPress plugin.


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


  897 - 888   887 - 878   877 - 868   867 - 858   857 - 848   847 - 838   837 - 828   827 - 818   817 - 808   807 - 798   797 - 788   787 - 778   777 - 768   ...   7 - 1  
  PHP Classes blog PHP Classes blog   Blog All package blogs