PHPNews

Manipulating git repositories with Node.js

What do linting, building and testing have in common? They all work best when automated. With services like GitHub’s webhooks , it’s easy to subscribe to certain events on your repository and be notified by a HTTP request. These might be commits being pushed or pull request landing at your repo when you can trigger …

Continue reading »

Written by radek.io - Articles - - Aggregated on Tuesday October 27, 2015


Migrating Octopress to Sculpin

Just over a week ago I wanted to publish my previous blogpost , only to find out that the Gist plugin I was using for the code samples didn't work anymore. Some research showed me that the something changed in the way the Gist API worked that warranted an upgrade of the plugin. So I thought I'd quickly update the …

Continue reading »

Written by Stefan Koopmanschap - - Aggregated on Monday October 26, 2015


Managing Cronjobs with Laravel

There are times when your application needs to run administrative tasks periodically on the server. Whether you want to send out emails to your users or clean up the database tables at the end of the day, you will need a task scheduling mechanism to take care of the tasks, when it’s time. Cron is a task scheduler …

Continue reading »

Written by Sitepoint - - Aggregated on Monday October 26, 2015


Effective tests: Setting up a database fixture

For most of us in the PHP community, writing our first integrated test usually means interacting with a database. For too long I considered this a difficult and frustrating thing to do, so I avoided it, leaving code either uncovered, or covered with overly specified tests using way too many test doubles. Most of …

Continue reading »

Written by Dave Marshall - - Aggregated on Monday October 26, 2015


Effective tests: Setting up a database fixture

For most of us in the PHP community, writing our first integrated test usually means interacting with a database. For too long I considered this a difficult and frustrating thing to do, so I avoided it, leaving code either uncovered, or covered with overly specified tests using way too many test doubles. Most of …

Continue reading »

Written by Dave Marshall - - Aggregated on Monday October 26, 2015


Effective tests: Setting up a database fixture

For most of us in the PHP community, writing our first integrated test usually means interacting with a database. For too long I considered this a difficult and frustrating thing to do, so I avoided it, leaving code either uncovered, or covered with overly specified tests using way too many test doubles. Most of …

Continue reading »

Written by Dave Marshall - - Aggregated on Monday October 26, 2015


OCR in PHP: Read Text from Images with Tesseract

Optical Character Recognition (OCR) is the process of converting printed text into a digital representation. It has all sorts of practical applications — from digitizing printed books, creating electronic records of receipts, to number-plate recognition and even circumventing image-based CAPTCHAs. Tesseract …

Continue reading »

Written by Sitepoint - - Aggregated on Friday October 23, 2015


Creating a Bolt theme from a template

A friend recently asked me if I could make a simple website for the new radiostation he was joining as a DJ. My usual job is big applications and web projects, so (while this may sound weird) a simple website is actually something I'm not that efficient in, but since finding Bolt I actually do that every once in a …

Continue reading »

Written by Stefan Koopmanschap - - Aggregated on Friday October 23, 2015


Creating a Bolt theme from a template

A friend recently asked me if I could make a simple website for the new radiostation he was joining as a DJ. My usual job is big applications and web projects, so (while this may sound weird) a simple website is actually something I'm not that efficient in, but since finding Bolt I actually do that every once in a …

Continue reading »

Written by Stefan Koopmanschap - - Aggregated on Friday October 23, 2015


Make it testable

I really like the way Symfony is changing the PHP community and in general leading us to a better place. It’s really nice to see people using good practices in their daily work and pet projects. But I still have one concern with Symfony2 projects: The heavy dependency on the container . I mean, don’t get me …

Continue reading »

Written by Evaldo Junior (InFog) - - Aggregated on Thursday October 22, 2015


Why My Open Source Project Needs a Code of Conduct

I'm an open source project maintainer, working on the projects associated with joind.in , and recently we added a Code of Conduct to all our projects (we have quite a few as you can see from our github organisation page https://github.com/joindin ). I feel the same way about codes of conduct for open source …

Continue reading »

Written by Lorna Jane - - Aggregated on Wednesday October 21, 2015


Domain-Driven Design workshops

We’re bringing you some exciting workshops in the coming months. Register today to ensure your spot! Experiencing Domain-Driven Design The full three day advanced workshop, with lots of hands on modelling, Event Storming, Context Mapping, CQRS/ES, heuristics, and much more. Experiencing Domain-Driven …

Continue reading »

Written by Mathias Verraes - - Aggregated on Tuesday October 20, 2015


PHP: Calling Methods on Non-Objects

PHP has subtly changed the wording of this error between various versions of the language, which can trip up your log aggregators when you upgrade so I thought I'd give a quick rundown of the changes around the "call to member function on non-object" error in PHP, up to and including PHP 7 which has an entirely new …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday October 19, 2015