I have just published and SmartSerializer library for PHP 8. It is highly dedicated to cooperate with Symfony 6 framework and allows to serialize any object by the customized annotation. See details at: https://packagist.org/packages/smartgroup/smart-serializer Tweet
Google reCAPTCHA – use with PHP
As we take a look on websites, we can easily see that most of them have contact form built in. But having this contact form could switch to huge amount of spam messages sent by using that form. Fortunatelly we
Zend Framework 3: select form field with options fetched from database
Sometimes we have to apply dynamic data (fetched from database) to form fields. Good example is to deliver an option to choose a preferred language during user registration. Let say we have two available languages on the begining, but we
Zend Framework 2: DB queries with multiple or/and conditions
Database queries usually are quite simple, but sometimes we have to build more complex queries. Let’s have an example We do have a search form where user can select one or many colours of product and one or many sizes.
PHP 7 Upgrade – free e-book
PHP7 will be released soon and many of us would like to get more knowledge about new version. Also it would be good to start prepare your PHP-based applications to work with the new version. Davey Shafik wrote an e-book
Zend Framework 2 – implementation of session authentication timeouts
Zend Framework 2 has implemented session mechanism which works quite well, but there are few missing features. One of this features are good handling of session timeout extension. The case User logs in at 10:00 AM. Authentication feature (based on
Zend Framework 2: custom layout for error pages
By default error pages gets the default layout of our application based on Zend Framework 2 and inject it’s own content. Sometimes default layout has some features placed on it, which should not be presented on the error page. Especially
Zend Framework 2 – wykorzystanie cache
Zend Framework 2 oferuje kilka różnych adapterów pozwalających na cache poszczególnych elementów, które chcemy składować w pamięci podręcznej. Poniżej przedstawię sposób konfiguracji cache opartego na systemie plików. Konfiguracja adaptera W pierwszym kroku musimy ustawić konfigurację adaptera, co dokonuje się w
Zend_Pdf – wykorzystanie szablonu pdf na wielu stronach
Gdy tworzymy dokumenty z wykorzystaniem Zend_Pdf czasami wygodniej jest wykorzystać istniejący szablon w formacie pdf (będący np. papierem firmowym), niż budować cały dokument ręcznie. Zend Framework daje nam narzędzie, które pozwala szybko i bezproblemowo zamieścić nasz szablon na wszystkich stronach