Category: PHP As Is
newrelic installation in docker environment
There are a couple of APM tools on the market now and newrelic is definitely one of the biggest players there. It offers PHP integration by providing an agent and a daemon tool. The former integrates into your PHP binary as an extension and collects the APM data of your app on runtime. While the latter is responsible for accepting the collected data from the…
Using Doctrine ORM without symfony framework
There is a need to integrate Doctrine ORM and its entity manager into a custom coded PHP project, not based on symfony, i.e. not having symfony/framework nor symfony/orm-pack in it. Let’s consider our previous project that uses Doctrine DBAL connection to insert scraped records into MySQL DB. Note that it does not have ORM, neither it has entity manager of Doctrine integrated. We’re using ::insert()…
Scraping products from Walmart with PHP, PhantomJS, Symfony Crawler and Doctrine (ver. 2)
As a follow up on this post we would like to post an article with updated version of the scraper. There were a couple of comments with interest expressed for this topic, so we decided to: create a completely new scraper, based on symfony/console have a better code (it’s 2020 now, so we should use PSR container to manage dependencies, symfony/process to launch processes and…
Scraping products from Walmart with PHP, Guzzle, Crawler and Doctrine
You know web scraping is a useful technique of data extraction from websites, especially if there is no any API or there is a ton of data that can’t be got in another way. The most simple and well-known way is to use CURL. But it is easy only in the aspect of using third-party components and widespread because of its universality. Our goal is…