List of posts tagged: PHP

Installing Composer on Windows

Short description Composer. And the installation instructions for Composer on Windows.

June 13, 2017 29 Yehor Rykhnov WindowsPHPComposerСonsole

Vagrant PHP Yii2 or how not to bother with the peculiarities of its OS to customize the development environment

A little bit about Vagrant. For me, the most convenient operating system for PHP development is Ubuntu. Here all the software is free, easy to configure, lots of documentation, etc. But if you have to work with other OSes (Windows, Mac, etc.) sometimes, you encounter problems installing one or another module or plugin for PHP. Vagrant helps a lot to get around this rake the tenth way. How it is done and what advantages Vagrant has - read in the article. We will install Vagrant for development on PHP and install Vagrant to work with Yii2 advanced.

June 10, 2017 28 Yehor Rykhnov Yii Framework 2yii2PHPVagrant

Working with PDO in PHP

Functions mysql in PHP to work with the database has long been obsolete, for today it is desirable to use mysqli or PDO (PHP Data Objects).

In addition, PDO supports a large number of different types of databases, such as: MySQL, PostgreSQL, SQLite, Oracle, Firebird, etc. And so let's figure out how to work with PDO, consider the most frequently used queries.

May 31, 2017 14 Yehor Rykhnov PHPPDODatabase

Auto-load files using the namespace through the loader composer

A brief instruction about uploading files using composer.

March 15, 2017 14 Yehor Rykhnov PHPComposer

Elasticsearch. Update, delete a document

Elasticsearch. Part 7, update, delete a document in Elasticsearch. Previous part: Elasticsearch. Highlight search results.

July 9, 2016 18 Yehor Rykhnov Yii Framework 2yii2PHPElasticsearch

Elasticsearch. Highlight search results

Elasticsearch. Part 6, highlighting search results in Elasticsearch. Previous part: Elasticsearch. Full-text search.

Often the need to allocate a search phrase in the search results. Elasticsearch has built-in mechanisms for the selection and framing of the search result to HTML tags. An example of the highlighting of search results in Elasticsearch using CURL, PHP and Yii2.

July 1, 2016 24 Yehor Rykhnov Yii Framework 2yii2PHPElasticsearch

Elasticsearch. Full-text search

Elasticsearch. Part 5, full-text search in Elasticsearch. Previous part: Elasticsearch. Search, filters - Query DSL.

Example full-text search in Elasticsearch with help CURL, PHP and Yii2.

June 22, 2016 19 Yehor Rykhnov Yii Framework 2yii2PHPElasticsearch

Elasticsearch. Search, filters - Query DSL

Elasticsearch. Part 4, use the filter to search Elasticsearch. Previous part: Elasticsearch. Retrieving data.

An example of the use of filters to search in Elasticsearch with help CURL, PHP и Yii2.

June 21, 2016 15 Yehor Rykhnov Yii Framework 2yii2PHPElasticsearch

Elasticsearch. Retrieving data

Elasticsearch. Part 3, how to get the data in Elasticsearch. Previous part: Elasticsearch. Adding data (indexing).

Example of get data Elasticsearch with help CURL, PHP and Yii2. This article will be reviewed example of retrieving of data with help Id, search data and getting data over the filter, search and getting of all data.

June 14, 2016 14 Yehor Rykhnov Yii Framework 2yii2PHPElasticsearch

Elasticsearch. Adding data (indexing)

Elasticsearch. Part 2, the addition of data in Elasticsearch. Previous part: Elasticsearch. What is Elasticsearch and how to install it.

Example of adding data with help CURL, PHP and Yii2.

June 13, 2016 18 Yehor Rykhnov Yii Framework 2yii2PHPElasticsearch