Žyma: PHP
-
Running migrations for Codeigniter 4 via HTTP
I did not have command line access on a few of the servers that hosted the projects I was working on. And currently Codeigniter 4 only has documentation on running database migrations / rollbacks / seeds in the command line. Therefore I asked around and made a special controller for the migrations / rollbacks /…
-
PHP Function to Validate Lithuanian Personal Identification Number
Below is a simple function for PHP to check if a number is a valid Lithuanian personal identification number. As I made it for Codeigniter 4, it is included in a class (that can be easily integrated into CI4 framework), but if you want, you can use it as a standalone function. By default it…
-
PHP function to check if a date is a holiday in Lithuania
Here is a simple function for PHP to check if a date, given in standard ISO format (Y-m-d) is a public holiday in Lithuania. I needed one for a project, so here it is for everyone: