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  
  889 - 880   879 - 870   869 - 860   859 - 850   849 - 840   839 - 830   829 - 820   819 - 810   809 - 800   799 - 790   789 - 780   779 - 770   ...   9 - 1  

1. How to Improve a PHP Movie Website with a Game that Lets Players Manage a TV Station to Battle for Prime Time Buying and Selling Movies to Exhibit

Updated on: 2023-11-03

Posted on:

Blog: PHP Movie Game package blog
Package: PHP Movie Game

Many people like movies and watch them frequently. Companies that work in the movie industry often have television stations or movie Websites that transmit movies to address the interests of their audience.

This package implements a game that lets players participate in a simulation of a television station and act as managers who can plan the station schedule, buy and sell movies, and battle for prime-time audiences with other television stations.

Playing a game like this can be nice to people who like the movie industry and want to work in this business area.


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

1. How Can PHP Monitor File Changes to Detect Important Events When PHP is Run with Swoole

Updated on: 2023-11-02

Posted on:

Blog: Swotch PHP File Change Event Watch package blog
Package: Swotch PHP File Change Event Watch

Swoole is a PHP asynchronous programming framework that allows developers to create high-performance PHP applications by highly optimizing the server CPUs in the server computer on which PHP applications run.

It uses asynchronous programming to let developers define multiple PHP code sections that can run in parallel while other PHP code sections are waiting for tasks that access external resources that are not completed, like, for instance, database accesses, network connections, or file accesses.

This package implements a directory file watcher class that uses Swoole asynchronous support to process file changes in parallel with other tasks that your PHP Swoole-based applications may be performing.


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

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)


  889 - 880   879 - 870   869 - 860   859 - 850   849 - 840   839 - 830   829 - 820   819 - 810   809 - 800   799 - 790   789 - 780   779 - 770   ...   9 - 1  
  PHP Classes blog PHP Classes blog   Blog All package blogs