Set up SSO service using SAML with Drupal 7 (as IdP) and Drupal 8 (as SP)

Security Assertion Markup Language (SAML) is an open standard for exchanging authentication and authorization data between parties, in particular, between an identity provider and a service provider. SAML is an XML-based markup language for security assertions (statements that service providers use to make access-control decisions). SAML is also:

1. A set of XML-based protocol messages
2. A set of protocol message bindings
3. A set of profiles (utilizing all of the above)

Installation and configuration of elastic server, vuejs and lumen for advanced search

Elastic Search performs real-time distributed search and analysis. In short, it is a platform or engine that performs a full-text search. It has a growing popularity over the years. It has powerful features and is easy to configure and uses RESTful API.

Let us try and understand the Elasticsearch basics in its pure form:


Functions File Explained

One way to change the default behaviors of WordPress is using a file named functions.php. It goes in your Theme's folder.

The functions file behaves like a WordPress Plugin, adding features and functionality to a WordPress site through PHP code. You can use it to call native PHP functions, WordPress functions, or to define your own functions.

Alternatively, you can place your custom PHP code into your own WordPress Plugin, or simply use a "functionality" plugin such as the Code Snippets plugin to manage your custom PHP snippets.


A demonstration of drupal 7 templete.php file

The template.php file contains your sub-theme's functions to manipulate Drupal's default markup. It is one of the most useful files when creating or modifying Drupal themes. With this file you can do three things:


Infrastructure Design For Drupal Apps

Horizontal and Vertical Scaling
There are two approaches to scaling out an infrastructure to add additional resources:
horizontal scaling (“scaling out”)
vertical scaling (“scaling up”).
Horizontal scaling involves adding additional servers while vertical scaling involves adding more resources
to existing servers.
A good infrastructure plan will take both of these scaling approaches
into account, as there are times when one may be more appropriate than the other.

PHP Apache MPM Settings

Apache is one of the most configurable and flexible HTTP servers in existence. It is in
fact so configurable that you can even change its process model via your choice of
multiprocessing module (MPM). The two major core MPMs are Prefork and Worker:

Vue, Laravel echo + + lumen(event, listener)

一: Laravel echo + Vue
1. First install socket-client, laravel-echo package for vuejs

Render block caching example

Drupal’s render API takes a structured array of data and converts it to HTML, running
it through the theme system and collecting associated assets such as CSS and JavaScript.
One of the more powerful but underused features of the render system is its integrated
cache handling.
When writing code that generates HTML, there are two main phases that the content
goes through:
1. Building the array of data (e.g., a list of nodes based on the results of a query)

Several approaches for reducing image requests

Images embedded in content via the tag are relatively hard to optimize in terms
of the number of requests. You can optimize images for bandwidth using image derivatives,
which ensure the images are scaled or cropped to the size they will be served at.
Drupal 8 goes further by supporting responsive images via the Picture module (also
available in Drupal 7 as a contributed module), so that the correct image derivative—
and only that image derivative—is loaded based on breakpoints. For very image-heavy

Install and configure Solr and search api in Drupal 7

Apache Solr is an open source search platform written on Java. Solr provides full-text search, spell suggestions, custom document ordering and ranking, Snippet generation and highlighting. The following are the steps i recorded that how i install and configure Solr server with search_api_solr, search_api_autocomplte


Subscribe to Front page feed