Categories
composer php plugin

CSRF token package

Working on older projects (as i tend to do), I often get various requirements for security enhancements. A few days ago, somebody apparently ordered a security test of a site I was working on, so yesterday i got the report:3 HIGH security errors, one being that we had no CSRF tokens on the forms. gah… […]

Continue reading

Categories
php

Laravel AWS SDK credentials using .env and configs

Every now and then, I need to integrate with an Amazon web service (aws). I like the whole IAM user way of doing this, so that is usually my preferred choice. However, every time i need to setup a connection in a project (using mostly Laravel these days), I forget how I did it last […]

Continue reading

Categories
php

Using a Zend view helper inside a partial

When rendering a page using one or more partials, I often need to call a helper to do some extra stuff for me. One caveat I found was, that the view variables was not available in my helper. After some research it seems that the partial acts as the new view.So in order to access […]

Continue reading

Categories
php Server

Handle different environments with PHP

Being both a Rails and PHP developer, I’m often lacking a few things when I’m switching from Rails to PHP. One of the things I miss the most, is the different environments that Rails has, which makes testing, developing, staging and production environments easy.However, I found a way to do this in PHP as well, […]

Continue reading