Showing posts with label development. Show all posts
Showing posts with label development. Show all posts

Friday, May 3, 2019

Laravel-like Timestamps With Symfony & Doctrine

I have enjoying my development time with Laravel a lot and a quite helping feature is Laravel keeping track of Model creation and update timestamps automatically when using its Eloquent ORM. Once after every indefinite days, I decide to do my next thing with Symfony. It was, is and will always be my favorite PHP framework!

After a lot of Laravel programming previously, I have been feeling sick of setting created_at and updated_at timestamps manually in each of my actions. So I figured myself a quick, re-usable way out to do it elegantly and move logic out of the actions.

It can be achieved by creating a trait in file Timestamps.php in src/Entity folder of your Symfony applications with below contents:

Then import and use the Timestamps trait in your Entity class as follows:

If you use (Doctrine) migrations for your database upgrades, you may add required created_at and updated_at columns as shown below to your table:

Hope it might help you too as it did to me!

Saturday, April 27, 2019

APK Studio 5 Release Announcement

I recently done finalising and then, releasing prolonged update for APK Studio, the 5.x series available for download on Github.


The notable changes are:


  1. Complete re-write, simpler codebase
  2. New dark theme for your eyes
  3. First-party builds for Linux, Mac OS X (yes!) & Windows
  4. More stability and features within IDE
  5. Did I mention, a newer, cleaner website?

Go ahead and download them here. Let me know here if any suggestions or report issues on Github.

Friday, November 13, 2015

New APK Studio Version (d49d3de), Native Installers For Windows & Linux

[EDITED]

I have been trying real hard to keep the APK Studio project active. Solving issues, adding missing features as soon I notice.

I am excited to announce new beta release, i.e., d49d3de available for download.

With this release, now you get a couple Toolbars, one at bottom & one at left. These toolbars have icons which allow you toggle visible/invisible views (Project, Console etc.). Also as an enhancement to build process, APK Studio's versioning now uses Git tags.

In result to which APK Studio now looks more like a professional IDE (which it may become someday).

One more of the few good things that have happened in the while is I have been able to get a free license for InstallBuilder donated by BitRock. Tried & tested, it is way too powerful program for creating native, cross platform installers for any kind of application and barely adds anything noticeable to final package size. Thanks to the software, I am able to produce all-in-one installers for APK Studio to be run on Linux x86/x86_64 & Windows.

These installers automatically install APK Studio along with vendor binaries, add Desktop/Start Menu shortcuts, create Uninstaller & more.

You can download the Linux (x86 & x86_64) installer from this and this link, Windows installer from this link. Source code for this release is available here.