List of posts tagged: PHP
Installing Composer on Windows
Short description Composer. And the installation instructions for Composer on Windows.
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.
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.
Auto-load files using the namespace through the loader composer
A brief instruction about uploading files using composer.
Elasticsearch. Update, delete a document
Elasticsearch. Part 7, update, delete a document in Elasticsearch. Previous part: Elasticsearch. Highlight search results.
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.
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.
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.
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.
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.