To store and convert time between timezones in PHP, you can use the DateTime class and the DateTimeZone class. Continue reading Times and Timezones in PHP
Tag: PHP
Send SMTP mail in PHP
You can send SMTP mail in PHP using the built-in mail()
function or by using a third-party library like PHPMailer. Continue reading Send SMTP mail in PHP
How to use MongoDB with Laravel?
To use MongoDB as the database for a Laravel project, you can use a package called “jenssegers/mongodb”. To install this package, run the following command in your terminal:
What is PHPUnit?
PHPUnit is a unit testing framework for the PHP programming language. It is an instance of the xUnit architecture for unit testing frameworks. It provides functionality that allows developers to write automated tests for their code, which can then be used to verify that the code is working as intended.
Dockerize PHP Application with MySQL Database
Dockerizing a PHP application with a MySQL database is similar to the general process of dockerizing an application, but with a few additional steps to set up the database. Here are the steps to dockerize a PHP application with a MySQL database:
Continue reading Dockerize PHP Application with MySQL Database
PHP Classes Explained
PHP classes are a way to define reusable code structures in PHP. They allow you to define the properties and behaviors of objects, and create multiple instances of those objects that share the same structure and behavior.
Here is a tutorial on how to use PHP classes:
Continue reading PHP Classes Explained
PHP Code used to submit a post to a WordPress site using WordPress REST API
Here is an example of PHP code that can be used to submit a post to a WordPress site using the WordPress REST API:
Continue reading PHP Code used to submit a post to a WordPress site using WordPress REST API
PHP MySQL and PHPMyAdmin Docker Compose
Here is an example docker-compose.yml
file that sets up a PHP web application, a MySQL database, and phpMyAdmin for managing the database
Regular Expressions’ı anlamak
Merhaba,
Kendi ihtiyacım için bakınırken bir sitede Düzenli İfadeler’e (Regular Expressions ya da RegEx) yönelik temelden başlayan güzel bir yazı gördüm ve faydası dokunabileceğini düşünere Türkçeleştirmeye karar verdim. Umarım faydası dokunur.
Continue reading Regular Expressions’ı anlamak
cURL ve goo.gl API’si ile URL Kısaltmak
Merhabalar,
Çok önceleri bir yazımda bu konu hakkında birşeyler yazacağımı belirtmiştim. Ancak fırsat bulabildim.
Bildiğiniz gibi twitter’ın kısa karakter limitleri ve sosyal paylaşımlarda, hatta bazen reklamlarda düzgün görünen linkler amacıyla bir sürü link kısaltma servisi türedi. Bunlardan bazıları: http://goo.gl, http://bit.ly, http://ow.ly vs. vs.
Bu servisleri kendi işiniz için sürekli kullanmayı düşünürseniz bazıları sizler için API sunuyor. (Goo.gl ve Bit.ly)
PHP ile Dosya Uzantısı Bulma
Merhaba,
Dosya uzantısına göre icon göstermek, dosya uzantısına göre yükleme izni vermek vs gibi birçok durumda dosya uzantısını dosya isminden almanız gerekebiliyor. Aşağıda bu işinizi görecek bir fonkstiyon paylaşacağım.
Bonus Card BIN Listesi

Merhaba,
Bu günlerde yaptığım çalışmalar için elime ulaşan Bonus Card’lara ait BIN listesini sizlerle paylaşmak istedim. Garanti Bankası Sanal POS websitesi tarafından edinilmiş olan bin’leri kart numarasının ilk altı hanesi ile girilen kredi kartının türünü tespit etmek amaçlı kullanabilirsiniz. (Biz o amaçla kullandık mesela) Böylece kullanıcılarınıza sadece kendi kartlarında kullanacakları taksit seçeneklerini sunabilirsiniz. Not: Bonus’un BIN Listesi diğer paylaştığım iki bin listesine göre oldukça uzun. DenizBank, TEB (Türk Ekonomi Bankası), Şekerbank ve ING Bank; Continue reading Bonus Card BIN Listesi