Keep Coding

Never Stop Learning

Category: PHP (page 1 of 3)

A Composer ready starter kit

After doing a few open-source projects I found myself doing some steps again and again to setup a new repository on GitHub. I live in PHP world and what I normally do is to create a Composer package along with CI operations and bunch of automated code review tools.

This might seem like an overkill specially for small projects but believe or not it pays off as the project grows. So I came up with a Composer ready starter kit to help speed up starting PHP projects on GitHub which can be found here. It includes:

To get started:

  • Pull the repo
  • Rename any php-base-project and PhpBaseProject with your project name and appropriate namespace
  • Create an account on Travis, Scrutinizer and Code Climate and allow access to your repository
  • Update composer.json with the relevant information to your project
  • Update .travis.yml with your repository token from Code Climate
  • Update readme file with the right path to the badges
  • Update author name in the license

Build a Slack bot with Botonomous Framework and Events API

botonomous-logo

In this tutorial I’m going to show you how to build a Slack bot with Botonomous Framework and Events API. If you have followed the last tutorial you already know how to prepare the server and install Botonomous Framework.

 

More …

Build your “What’s for lunch” Slack Bot

Botonomous Framework LogoHave you ever wondered having a Slack Bot in your team that suggests where to have Friday work lunch? If so, this tutorial will walk you through the process of building your own Slack Bot in PHP using Botonomous Framework and Slash Commands.

More …

Continue processing PHP after sending 200 OK response

Recently I’ve come across APIs and mainly event management systems that need to receive a HTTP 200 OK response upon sending a request to our server. For example, if you need to integrate Slack Events API your server has to respond a HTTP 200 OK within 3 seconds to every event it receives. Another example is where your server has to respond an [accepted] response within 10 seconds to Adyen notifications.

More …

Optimising Big Data Processing in PHP

Optimising big data processing
It happens a lot for applications that were originally designed and tested based on small set of data eventually cannot handle big data. For example, as database grows or a big CSV file is the input a lot of issues such as slow performance, timeout error or unreasonable memory usage may come to the scene and optimising the process is crucial than ever. In this post, I’m gonna share our recent experience and the approaches we took for optimising big data processing in PHP.

More …

Older posts