Configure default datetime format of Symfony Serializer DateTimeNormalizer
How to customize the default date-time format in Symfony Serializer to include milliseconds or microseconds.
Posts tagged
10 posts
How to customize the default date-time format in Symfony Serializer to include milliseconds or microseconds.
How to use Travis CI to automatically deploy a Sculpin static site to S3 on every commit to master.
Implementing two-factor authentication using Google Authenticator and PHP with RFC-compliant one-time passwords.
Debugging mysteriously corrupted images from MS SQL: when blob data gets silently truncated at exactly 64KB.
A lightweight PHP script that mimics basic wget functionality when the real thing is not available.
A cleaner PHP pattern for creating comma-separated lists without trailing commas or messy conditionals.
An elegant PHP pattern for cycling through multiple values using object-oriented design and the __toString magic method.
A simple in-class caching pattern for PHP when you need to avoid repeated database queries within a single request.
Discovering that some years have 53 calendar weeks and how to handle it in PHP.
How to efficiently insert one million database records using PHP with batch queries and transactions.