Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositories which is great when working with a team, I’ve recently started using Gitlab for a private project, where I need to download private repositories to the project server and extract their contents.Continue Reading
Sometimes you need to make improvements to your code and make things more efficient. Using some simple PHP Statistics can help you identify areas which need improving. These snippets offer useful insight into how efficiently your application is running.
So, for our first snippet we will look at script execution time. This will tell us how long it took the server to process and execute our PHP script. This is one of the most useful snippets. It would also be very useful for benchmarking PHP 5.6 versus 7.0.Continue Reading
Buffer is a great social media management tool, perfect to scheduling facebook and twitter updates. I recently wanted to integrate Buffer into a website using the Buffer api. Thankfully the documentation for the Buffer api is clean and easy to follow.
Buffer requires OAuth 2.0 authentication they don’t have a php library, but I found a brilliant repo on Github https://github.com/thewebguy/bufferapp-php the buffer class provides a wrapper for integrating with Buffer.Continue Reading
Quick tip to create a list page that will read the files from a directory and link to them is super easy. Using scandir to scan a folder then loop through the files and create a series of a links that link to the document.Continue Reading