Application Architecture

In this section, you will find articles, tutorials, and snippets covering all areas of Application Architecture in PHP.

Other Categories: Databases, News, Pear, PHP Functions, Setup & Installation, Site Operation, Tools, Tricks & Hacks.

Results via Envato Market

Learn how to create, receive and test a JWT in PHP.
JSON Web Token (JWT) is a JSON-based open standard used to create access tokens that assert some number of claims. In a palpable example, the JWT represents a key between a server-client relation: the server generates a token that has the claim “logged in as admin” and give it to a client, which could use that token to prove that is logged in as admin. The tokens are designed to be compact, URL-safe and can also be authenticated or encrypted.

The cloud is the newest buzzword in all things development, and there are many different options for utilizing the nebulous cloud. Amazon Web Services, Microsoft Azure, and Digital Ocean (just to name a few) are some providers that give you various levels of cloud computing. While all three give you Virtual Private Hosting, Microsoft has stepped up their offering.

Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux. Learn how to install Docker on Windows, how to create a machine, how to pull/push an image from/to Docker Hub–and mostly importantly–how to run a PHP script by creating our Dockerfile file.

how to parse and serialize a JSON object, how to extract data from a database as a JSON string, how to store a JSON object into a database and in the last section of this article you have seen how to encrypt and decrypt a JSON object using OpenSSL.

CSV files are often employed to import data from an application such as MS Excel into a database. Rob Gravelle demonstrates how to write a PHP script that reads in a CSV file and converts its contents into a multi-dimensional array for insertion into a WordPress database.