Docker customers module file:


ReflectionClass and IoC demonstration

PHP 5 comes with a complete reflection API that adds the ability to reverse-engineer classes, interfaces, functions, methods and extensions. Additionally, the reflection API offers ways to retrieve doc comments for functions, classes and methods.

The ReflectionClass class reports information about a class:

Mini Program login process

Mini Programs can use the official WeChat login to conveniently acquire the user IDs provided by WeChat to quickly establish a user system in the Mini Program.

Call the interface wx.login() to acquire the temporary login certificate code

Configuring CORS in Drupal 8

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.
A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos. Certain "cross-domain" requests, notably Ajax requests, are forbidden by default by the same-origin security policy.


Creating Custom Endpoints for the WordPress REST API

The WordPress REST API provides you with more than just a set of built-in routes. You can also create custom routes and endpoints using the same APIs used to create default routes (the register_rest_route() function and the WP_Rest_Controller class etc.). With this, you’ll have the possibility to integrate WordPress with other ecosystems, which makes WordPress a powerful and modern application development platform.

You can create or register custom endpoints either in plugins or themes.


Various files and the folder structure of Apache Solr

Let's look at the major folders and files we will be dealing with.

Scaling Drupal 8

1. Enabling Drupal Cache
One of the simplest approaches for significantly improving your site’s performance is to utilize Drupal core’s
caching mechanisms. Caching is a means for storing the rendered version of a page, block, or view so that
Drupal does not have to assemble those components every time a visitor requests a page.

Drupal 8 core comes with two modules that empower caching on your site:

Using MongoDB with Drupal 7

MongoDB can be easily integrated with Drupal 7 to support millions of dynamic web pages on a daily basis to speed up the websites. This document oriented application is a schema less database that can store large files without complicating your stack.

Here’s a look at how to install MongoDB on Linux and integrated it with Drupal 7.

1. Installing the MongoDB packages.

Using Redis with Drupal 7

Redis is a very powerful cache system for static pages of Drupal websites. It is a very popular open source software that has become an important aspect of speeding up drupal websites. The core functionality of Redis stems from its data structure servers

1. Install Predis libraries

High Performance Web Site Tips

• Make fewer HTTP requests to reduce object overhead.
• Use a content delivery network.
• Add an Expires header.
• Gzip/compress text components.
• Put stylesheets at the top in the head.
• Put scripts at the bottom of the body.
• Avoid CSS expressions which are CPU-intensive and can be evaluated frequently.
• Make JavaScript and CSS files external.
• Reduce Domain Name System (DNS) lookups to reduce the overhead of DNS
delay by splitting lookups between two to four unique hostnames.
• Minify JavaScript.


Subscribe to Front page feed