Enabling MongoDB in PHP

Install PHP MongoDB driver on Ubuntu ( I’m using Ubuntu for my development with nginx and php 7.2) In order to use MongoDB we need php.2-mogondb driver to connect the MongoDB and PHP sudo apt install php7.2-mongodb There after check your php.info() and validate the extension is enabled on your environment.

How to setup composer properly in your Ubuntu

In order to install composer in your machine, you need to download it. move your current directory to /home/<username> If you already have .composer directory just removed it and uninstall all previous version. Then download the composer setup: php -r “copy(‘https://getcomposer.org/installer&#8217;, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ’93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8′) { echo ‘Installer verified’; } else…

createUser in MongoDB

Login as normal user without password after your installation and create user as follow There after restart your db as follow Then, can able to login with the username and password. if you are not able to login just restart your machine.

Data Fixture & Demo Data

Hope you enjoy with generating/creating entity. It’s awesome you done it. Now we are going to look around. How to load data fixtures on the created entities. For this, we are using the FixtureInterface to implement the method and load the data into the database. Let’s create a PHP class in our bundle location <Bundle…

Visualize Data in Data Grid in Oro Platform

In this post, we are going to visualize the data in a data grid. For this, we are using the earlier posts Generating Bundle Generating Entity Loading Data Fixtures Ok, first of all, we need to define our data grid in the /src/<Bundle Name>/Resources/config/oro/datagrids.yml In this file, we are going to configure our grid as…

Play with Entities & Database Tables.

I assume you were playing with Generating Bundles with Oro Platform. Now we are going to create two entities and upgrade to the database. In this tutorial, I plan to create to entities, like task and priority, which are related to many to one relationship. Hope you remember a the Doctorin command to create an…

Generate Bundle on Oro Platform

Generating bundle in Oro Platform is so easy if you are a Symfony user, Let’s think in a Symfony way. If we are going to create a bundle using Doctorin command in Symfony what we are going to do. We run the following command for making a bundle $php app/console generate:bundle The same way we…

Enabling Console Code in phpStrom with Symfony

In this lesson you will learn about How to setting up the phpStrom for Symfony code based First of all we need to set up the Symfony support plugin to phpStrom. In your file menu go to setting and find plugins tab on the left side bar of the setting window, If you are not…

Getting Start with Symfony with composer

In this session you will learn: How to install symfony on the Linux environment using composer Symfony is php based framework with easy to code in secure manner. In this session we are going not deeper on symfony we just looking the way how to install in Linux based environment. Here, I’m demonstrating you on…

Make available to autocomplete suggestions in your terminal

Again and again typing the same things in the terminal is the worst things. After a long search, I found a simple solution to enable autocomplete options on the terminal. Normally, Linux bash use readline for its auto-completions, add the following line to enable auto-completions on your terminal. **** Caution **** The following change file…