4 posts in total

Php

Posts tagged

Building secure PHP applications in 2018

by Catalin · 1 min read

The Paragon Initiative Blog has a new post with their tips and tricks, things to avoid on building secure PHP applications. As they mention, This guide should serve as a complement to the e-book,

PHP Composer crashes while updating

by Catalin · 1 min read

I was running a small Digital Ocean server (512 MB RAM) for a side project and got to the problem that I could not use composer update after pushing changes related to the use of new packages.

PHP convert CSV to associative arrays

by Catalin · 1 min read

Something handy when importing CSV files: <?php $csv = array_map('str_getcsv', file($file)); array_walk($csv, function(&$a) use ($csv) { $a = array_combine($csv[0], $a); });

Yii - bypassing beforeSave()

by Catalin · 1 min read

If you have defined in your model some “actions” / “mutators” in your, beforeSave method there is a simple way to prevent that these actions to take place in certain cases when you need that. For