sticker

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

March 1, 2018


Hello to the PHP community, and welcome to PHPweekly.com.

When creating a REST API, it's always helpful to use a PHP framework. This week we have a list of five of the best.

The 7th episode of the php[podcast] is out this week, discussing the Know Your Tools edition of the [php]architect magazine.

Christoph Rumpel has a new book coming out soon, Build Chatbots with PHP. Read the first chapter here for free. 

Plus on the Kingsta blog is the latest PHP Benchmark post. After testing the performance of 20+ platforms/configurations on 5 different engines, see which one came out on top. came out on top.

And finally, Confoo takes place next week in Montreal. A multi-technology conference for web developers, the last few tickets are on sale now.

Enjoy your read, 

Cheers
Ade and Katie

Please help us by clicking to our sponsor:

encrypt php scripts 
Protect your PHP Code
Why not try SourceGuardian 11. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders.

Articles

Why You Should Contribute To Open Source Projects
The first title I gave to this post was How Open Source Can Change Your Life For The Better. That was a good title too, but I think the main reason I wrote this post is to encourage you to start (or continue) working and contributing to open source projects, that’s why the title changed.

5 Great PHP Frameworks for Building an API
Developing an API in plain PHP is time-consuming and error-prone. Thankfully, it’s not necessary. All you need is a great little PHP framework to help you out. Rakesh Patel over at BCW picks out five of the best PHP frameworks for creating REST APIs. 

Lasagna Code - Too Many Layers?
"The object-oriented version of spaghetti code is, of course, 'lasagna code'. Too many layers." It's not the first time I'd heard of this quote. Somehow it annoys me, not just this one joke, but many jokes like this one. I know I should be laughing, but I'm always worried about jokes like this going to be interpreted as advice, in its most extreme form.

5 Laravel Helpers to Make Your Life Easier
There are a ton of helper methods in Laravel that make development more efficient. If you work with the framework, I encourage you to see what helpers you can introduce in your day-to-day work. In this blog post, I’d like to point out a few of my favourites.

Domain-Driven Design - Implementation
It is great to model something and now we have reached the point where we turn the model into the code. We will implement the model, no persistence, no input, only the most important part - the domain model. The implementation will be supported by tests and we will see how easy it is to test domain objects. We will also discuss the connection to the ubiquitous language and model and practical aspect of object encapsulation.

Tutorials and Talks

Persisted WordPress Admin Notices: Part 3
Welcome back to our series on persisted WordPress admin notices. We're now in a good position to be able to extend our admin notice functionality and control when they appear on the page. After that, we'll move on to persistent admin notices and see how you can make sure they're dismissed in such a way that they don't reappear when admin pages are reloaded. 

Create A Laravel Vue Single Page App In Under An Hour
The support for Vue.js means that Laravel developers could use Vue components easily within their apps without wasting time in writing integrations for the components. To demonstrate the support, I decided to create a single page application in Laravel with a Vue.js powered frontend.

Improving CI For Your Magento Module
Recently we hit a problem in our Force Login Magento 2 module: The module was not compatible any more with Magento 2.1 due to a change in a constructor of a Magento base class we extended. This broke the DI configuration which in turn meant the module was not installable in a Magento 2.1 project any more.

Making Symfony’s Router 77.7x Faster - 1/2
The Symfony Routing component is a general purpose URL matcher and generator. It has zero dependencies, and while it is well integrated into the Symfony Framework, many use it standalone in their PHP apps. 

New in Symfony 4.1: Deprecated The Bundle Notation
In modern Symfony applications, it's no longer recommended to organise your business logic using bundles. However, it was still possible to use the "bundle notation" for example when defining routes.

How to Use Blade Component and Include Aliases
In the Laravel 5.6.0 release Sebastian De Deyne contributed Blade component aliases and then in Laravel 5.6.4, he added a similar feature for Blade include aliases. Let’s go over how you can use both in your Laravel 5.6 projects!

Installing XAMPP on Windows for PHP and Oracle Database
This post shows how to install XAMPP on Windows to run PHP applications that connect to a remote Oracle Database.

Mocking at Architectural Boundaries: Persistence and Time
More and more I've come to realise that I've been mocking less and less. The thing is, creating test doubles is a very dangerous activity.

Slack. Send Simple Message.
Recently I wrote the post about reincarnation of popular PHP package for Slack, in which it was told about fork of popular package and about the resumption of support of this package. But there is nothing about its usage. So, today I want to tell about how quickly implement sending of messages to Slack with PHP.

A Pair of Helping Hands When Naming Things
One of the hardest (and sometimes frustrating) tasks in a programmer's day-to-day workload is naming things. Luckily, there are tools out there that can be of help.

Exakat 1.1.5 Review
Exakat 1.1.5 has a few upgrades for the reports and several under the hood enhancements. Such updates are important, as they pave the way to more important future updates, though they are usually not visible. This week, we added a new security report based on OWASP, removed the old ‘Devoops’ report, upgraded the ‘confusing variable’ report in Ambassador, added support for the HRtime extension. Ready? Let’s review Exakat 1.1.5.

Quickly Review Changed Functions In Your PHP Pull Requests
The file finder makes it easy to review pull requests and understand how changes impact your code. Now PHP developers can navigate to changed methods and functions right in their pull requests, too.

White Screen Error with eZ Platform Cloud & Other Symfony + Platform.sh Based PaaS
I've been using a PaaS called eZ Platform Cloud recently at work. In general I find the product, based on Platform.sh PaaS to provide a good workflow and great developer tooling.

Laravel Homestead – The missing manual part 1 – Site Parameters
In the early days of Homestead there used to be a “params” option at the top level of your Homestead.yaml file. These parameters would be copied into the environment for the virtual machine just like you would set environment variables on your production systems. Laravel ultimately moved to using “.env” files and this feature was removed from Homestead.

Simplified Graph Visualisation
The whole idea of Blackfire is to let you find easily where in your code you face bottlenecks or bad practices in performance management. We just released an other iteration of our call graph views to make it even simpler to read and understand.

Rector: Part 1 - What and How
Rector is a PHP tool that handles 2 things: instant upgrades and architecture refactorings. What exactly Rector does and how does it work?

Data-driven Testing With PHPUnit
Testing your code is an essential part of the development process, but sometimes it could also be expensive when you try to emulate many uses cases based on a set of different input data.

Smoke Testing ReactPHP Applications with Cigar
Last week I came across Cigar, a smoke testing tool by Matt Brunt. Which, to me, is great stepping stone for my personal projects/sites to integration tests. In this post we not only go into Cigar, but also how to start your HTTP ReactPHP application, run cigar against it, and shut it down again. (Note that it doesn't have to be a ReactPHP application it can also be a NodeJS app, or PHP's build in webserver you use for testing.)
News and Announcements

ConFoo - March 7-9th 2018, Montreal
ConFoo Montreal is a multi-technology conference for web developers, with 155 presentations by popular international speakers, focused on pragmatic solutions for web developers. Great content and an amazing experience. Tickets are on sale now.

Longhorn PHP Conference - 19th-21st April 2018, Austin Texas
Longhorn PHP is a 3-day conference in Austin, Texas to help PHP developers level up their craft and connect with the larger PHP community. Our main goal as a conference is to equip attendees to be better developers. If you work with developers or alongside developers, we'll showcase tools and techniques to level up your ability to solve the problems you face every day. Tickets are on sale now.

SymfonyLive Phantasialand - May 2nd-4th 2018, Phantasialand in Brühl
There will be a SymfonyLive again in 2018 - but in May we will not meet as usual in Cologne, but a little further south: in the Phantasialand in Brühl! As always, there will be two days of challenging workshops in Phantasialand on May 2nd and 3rd. On the conference day itself, a track awaits you with talks about Symfony and PHP. The Phantasialand offers us a new environment in which we can hold both the workshops and the conference. In addition, the conference ticket gives you unrestricted access to the park both on the workshop days and in the breaks of the conference! Tickets are on sale now.

PHP Serbia Conference - May 25-27th 2018, Belgrade
PHP Serbia Conference delivers high-value technical content about PHP and related web technologies, architecture, best practices and testing. It offers two days of amazing talks by some of the most prominent experts and professionals in the PHP world in a comfortable and professional setting. Early Bird tickets are on sale now.

Laracon EU - 29-31st August 2018, Amsterdam
Laracon EU is a unique international Laravel event with over 750 attendees. The conference has multiple tracks and is focusing on in-depth technical talks. Come learn about the state of the industry while networking with like-minded and diversely experienced developers. Blind Bird tickets are on sale now.

Podcasts

Laravel News Podcast LN56: Fugue States, Coding Horror, and LaraTalent with Ian Landsman
Jake and Michael are joined by the Godfather of Laravel, Ian Landsman, to talk all about hiring developers and the latest platform to do so, LaraTalent. 

That Podcast Episode 46: The One With The Last Jedi
Beau and Dave discuss Star Wars: The Last Jedi. There are spoilers here. And no tech talk. Consider yourselves warned!

Magetalk Magento Podcast #162 - An Evening with Jon Woodall
The guys sit down with Jon Woodall of Space 48 to talk B2B, the challenge of professional services, the growth of Mage Titans, and employing Magento Masters. Listen now!

North Meets South Web Podcast Episode 41: Work, Books and Movies, and Controversy
In this episode, Jake and Michael are joined by Cash Money Cowork members TJ Miller and Andrew Del Prete to talk about work, books and movies they've been reading, and controversial topics.

php[podcast] Episode 7 - Know Your Tools
Eric and John dive into the Know Your Tools issue for the month of February 2018. Share your thoughts on the topics covered and leave a comment below. 

Reading and Viewing

Build Chatbots With PHP by Christoph Rumpel
New book coming soon. Interested? Let me keep you updated on the development of my book and grab your first CHAPTER here for FREE.

Cloudways Interview - Kevin Kaland On Starting A Drupal Agency
Kevin is the owner of WizOne Solutions, which offers Drupal development as one of its services. He is also active in the Drupal community; he maintains several modules, most notably FillPDF, and regularly contributes patches and comments to other contributed modules. He has attended several Drupal events a year, and in general, his involvement has been a good thing for those who choose to work with him.

The Definitive PHP 5.6, 7.0, 7.1, 7.2 & HHVM Benchmarks (2018)
Each year we try and take a deep dive into performance benchmarks across various platforms and see how different versions of PHP and HHVM stack up against each other. This year we went all out and benchmarked four different PHP engines and HHVM across 20 different platforms/configurations; including WordPress, Drupal, Joomla!, Laravel, Symfony, and many more. We also tested popular eCommerce solutions such as WooCommerce, Easy Digital Downloads, Magento, and PrestaShop.

WordPress Security For Webmasters 2018: How To Secure Your Website From Hackers (by Cyrus Jackson, published 6th January)
It's no longer news that WordPress is the biggest content management system on the planet powering authoritative sites like CNN, New York Times etc. Which explains why WordPress is the bomb: amazing features and flexibility! As the WordPress content management system becomes more popular as the day go by, this increases the number of hack attempts on websites using the platform.

The Power of PHP (Power of Coding) – by Grace Murphy, published 15th January 2018
When PHP was first developed, its name stood for "Personal Home Page Tools." Today, PHP 5 has come a long way from that original suite of tools. However, PHP is still known for its myriad uses developing websites; in fact, WordPress was written in PHP. The Power of PHP explains why it's a great language for beginners, discusses its many applications, includes sample code, and describes the strengths and weaknesses of each iteration of PHP.

Jobs





Do you have a position that you would like to fill? PHP Weekly is ideal for targeting developers and the cost is only $50/week for an advert.  Please let me know if you are interested by emailing me at katie@phpweekly.com

Interesting Projects, Tools and Libraries

koseven
Koseven is an elegant, open source, and object oriented HMVC framework built using PHP7, by a team of volunteers. It aims to be swift, secure, and small.

phpservermon
PHP Server Monitor is a script that checks whether your websites and servers are up and running.

php-workshop
The core of PHP School, the workshop application. This is the library which runs and compares users solutions to pre-defined known working solutions bundled with each workshop.

voten
An open-source, beautiful, highly customisable yet deadly simple, and warm community.

docs
Collection of useful PHP frequently asked questions, articles and best practices.

adminer-custom
Customisations for Adminer, the best database management tool written in PHP.

disco
This package provides a PSR-11 compatible, annotation-based dependency injection container. Have a look at the disco-demos project to find out how to use Disco.

laravel-onesignal
This is a simple OneSignal wrapper library for Laravel. 

enqueue
A production ready, battle-tested messaging solution for PHP. Provides a common way for programs to create, send, read messages.

panel
Pterodactyl is the open-source game server management panel built with PHP7, Nodejs, and Go.

hubzilla
A general purpose communication server integrated with a web publishing system and a decentralised permission system.

openemr
OpenEMR is the most popular open source electronic health records and medical practice management solution.

Please help us by clicking to our sponsor:

encrypt php scripts 
Protect your PHP Code
Why not try SourceGuardian 11. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders.
 

So, how did you like this issue?

Like us on FacebookFollow us on Twitter
We are still trying to grow our list. If you find PHP Weekly useful please tweet about us! Thanks.
Also, if you have a site or blog related to PHP then please link through to our site.

unsubscribe from this list | update subscription preferences 
 

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

Talk to us!

If you have some news, want to share a link with us or chat with us feel free to email us.

And we also have an RSS feed that you can use.

Like us on FacebookFollow us on Twitter

Copyright © PHPWeekly.com