Test and deploy Laravel applications with GitLab CI/CD and Envoy

Recently we decided to move some of our projects to  GitLab  especially because we are attracted by the plans and all in one solution that it offers. We were particularly interested into  CI/DC for testing and continuous deployment on our DitigitalOcean droplets. Looking into the numerous resources, we have found this article that explain very clearly how to deploy a Laravel Any application using GitLab CI/DC and Laravel Envoy. We now use it for 2 of our projects and counting to add more of them. Below I report the article but I suggest you to visit GitLab website for the …

Read moreTest and deploy Laravel applications with GitLab CI/CD and Envoy

Laracon Online early bird registration is open!

Early bird registration for Laracon Online of February the 7th is open. Laracon Online is a great opportunity to attend one of the most exciting events of the Laravel community without breaking the bank. Early bird tickets are only 12$  and can be purchased here. And the best thing is that you can view all talks after  the conference, as all the conference will be recorded and available on line.      

InvoiceNinja Module: Access

InvoiceNinja is a very interesting invoicing Laravel application that we discovered last year. They have two different versions – hosted and self-hosted. In other words, you can register at invoiceninja.com and use their online version, paying for premium services, or you can download the code for free (Laravel 5.2) and install it on your server for free. We started with the hosted version, and we loved it, especially our accountant. It is really well made, easy to use, with a slick interface.   It took us few days to master the tool and since than we have been using it everyday. The hosted …

Read moreInvoiceNinja Module: Access

Assign automatically a role to a new user in Drupal 8

We recently had a project that required use to automatically assign a role to new users base on the values passed by that use in the registration form. We created a module for that , auto_user_role, sorry if the name is not the best, but at the time it looked like a good name. The bundle is actually pretty useful, but we would like to know your opinion, we have released the code on github , please hit the link and let us know how we could improve it.  

Building modular JavaScript applications with WebPack

Webpack is a module bundler for modern JavaScript applications. It is incredibly configurable, and it is very easy to get started. Webpack creates a graph of all of your application’s dependencies, once you’ve bundled all of your assets together, it outputs a bundled code following the given configurations. Smashing Magazine recently has released a nice article to get your self on the right track. Click here to get started.

Secure your ssh connection disabling ssh password logins

First off, having to remember a password for each of your clients server it is quite daunting, so it might seem a good idea to store the password to your server access in a very secure spreadsheet file. Well that is not a great idea, in stead you should secure the access to your server using an ssh key, this also will allow you to forget about a password and gaining access straight with a command line. So let’s start. First of all you will have to create a key , if you haven’t already (this is a MAC guide, but …

Read moreSecure your ssh connection disabling ssh password logins

Inexpensive stage LAMP server with Raspberry Pi3 and Ubuntu Server

Have you ever been in the position of asking your self  “How much shall I spend for a development server?”, “Shall I get an inexpensive shared host?” , “Will it be enough for my needs?”, “Perhaps i should upgrade”… well ask no more. If you don’t expect much traffic, and you are on a tight budget, or simply you want to make more practice in maintaining a web server, why not going for a home made web server. Raspberry Pi now i quite performing for a stage environment, and very very inexpensive. As a test we have got  the Raspberry …

Read moreInexpensive stage LAMP server with Raspberry Pi3 and Ubuntu Server

Mailtrap with Symfony, testing emails has never been so easy

Today I would like to write about a service that we use daily during development and pre-production, Mailtrap. Mailtrap is a fake SMTP server for development teams to test, view and share emails sent from the development and staging environments without spamming real customers. To set it up is very easy and for 1 inbox is also free. Simply hit the registration page, and head to the default inbox. There you will see the inbox settings that can be used in your project. That’s it! To make your job even easier, Mailtrap has a very useful Integration drop down that …

Read moreMailtrap with Symfony, testing emails has never been so easy

Laravel 5.3 add multi-language functionality

During a recent project, we faced the issue of adding a multi-language functionality to our application. We store our Laravel applications on DigitalOcean, but this tutorial will work basically on any other hosting company. Using Laravel middlewares we found a quite easy and straight forward solution. In this tutorial we will show you how to easily create your own. Add available locales in the configurations In order to allow only certain locales to work , simple add right below the locale key  in config/app.php the following array: ‘locales’ => [ ‘en’ => ‘English’, ‘it’ => ‘Italiano’], Create a custom middleware …

Read moreLaravel 5.3 add multi-language functionality

Let’s Encrypt ! How to create free ssl certificates on Ubuntu

SSL Certificates, sometimes called digital certificates, are used to establish a secure encrypted connection between a browser (user’s computer) and a server (website). The SSL connection protects sensitive data, such as credit card information, exchanged during each visit (session). Let’s Encrypt provides an easy way to obtain and install trusted certificates for free. In this guide we will show how to create a free certificate using Let’s Encrypt on Ubuntu. Download the Let’s Encrypt Client We will first download Let’s Encrypt client, certbot-auto from the EFF download site. Download  certbot-auto to the /usr/local/sbin directory by typing: cd /usr/local/sbin sudo wget https://dl.eff.org/certbot-auto We …

Read moreLet’s Encrypt ! How to create free ssl certificates on Ubuntu

Create and test a custom cron job in Magento

During one of my latest Magento projects I had to create custom cron jobs, so I decided to write a small how to guide, that might help you do the same. First off you will need a new custom bundle. In app/etc/modules/New_Module.xml <?xml version=”1.0″?> <config> <modules> <New_Module> <active>true</active> <codePool>local</codePool> </New_Module> </modules> </config> In app/code/local/New/Module/etc <?xml version=”1.0″?> <config> <modules> <New_Module> <version>0.0.1</version> </New_Module> </modules> <global> <models> <new_module>         <class>New_Module_Model</class>     </new_module> </models> </global> <crontab> <jobs>         <new_module>             <schedule><cron_expr>*/1 * * * *</cron_expr></schedule>             <run><model>new_module/observer::test</model></run> …

Read moreCreate and test a custom cron job in Magento

Sulu CMF

Today I would like to talk about SULU CMF, which is at the version 2.o. Sulu is  a  is a fantastic project based on Symfony 2 full stack and other open source application like PHPCR, Doctrine, Backbone.js and Require.js. It is meant to help developers create multi-platform, multi-language and multi-channel sites giving some boilerplate functionalities. Ah did I mention that it works great and it looks sleek ?! Check the gallery below and don’t forget to download the project to give it a try. Installation To begin with you will need the code, which can be cloned from the sulu-standard repository on GitHub . …

Read moreSulu CMF

Laravel Spark

I am more of a Symfony developer, but I have to admit that this project is pretty cool. Spark is a Laravel package that provides scaffolding for subscription billing, invoices, user management etc. It is a great starting point for most of the projects out there.   Spark has two plans $99 per Site or $299 for unlimited sites and extensive documentation I have looked at some demos and videos and it seems to be a very promising project, the next step is obvious, give it a try. Stay tuned for a step to step guide. Meanwhile check the spark project site for …

Read moreLaravel Spark

Translation for J2t Reward Points csv file for Magento.

Translation for J2t Reward Points csv file for Magento.   J2T Reward Points + Referral program VA is an excellent extension for Magento that overcomes the limitation of Magento on this matter. The plugin works like a charm, on 1.7.0 till 1.8.1.0 and I have been using it on countless project. It is not a free extension but 47$ are well worth this application. I have created a translation file for Italian locale, and I will add more as I will progress with it. To install simply upload the file in the related folder, eg. : app/locale/it_It/rewardpoints.csv for the italian one. it_IT …

Read moreTranslation for J2t Reward Points csv file for Magento.

Magento shipping method country codes

Table rates for Magento shipping method country codes I often found my self to fill in table rates for Magento shipping method, and got errors as I inserted the wrong codes. Here an useful table containing all the codes. I would suggest to download the CSV file from Magento to make sure you have the right format. Enjoy. Country 2 Digit Code 3 Digit Code  Afghanistan AF  AFG  Albania AL  ALB  Algeria DZ  DZA  American Samoa AS  ASM  Andorra AD  AND  Angola AO  AGO  Anguilla AI  AIA  Antarctica AQ  ATA  Antigua and Barbuda AG  ATG  Argentina AR  ARG  Armenia AM …

Read moreMagento shipping method country codes