I AM LISTENING TO
|

WHAT I LIKE
BLOG FILTER

31. March 2017

I am currently building a custom slides / template builder for a project, with a lot of moving parts and dynamic logic.

As there are repeating patterns within the slides, each pattern and its logic needs to be neatly separated.  As the slides can be reordered and dropzones can be changed, I need to make sure logic doesn’t break and IDs get updated.

Before reassembling all templates, I am making sure that IDs match the slide and dropzone using a preg_replace_callback

One of the patterns is a simple tab setup, each has its unique ID defined like vl-tab_U1_S1_D1.

The function below passes the found matches through to the anonymous callback function in preg_replace_callback and offers outside data to the function using use($foo). The $dropzone object holds the current unit, slide and dropzone of the pattern, which can be used to replace the current ID with the correct one.

Really nice combo to make magic happen  😉

BTW here a nice website to testdrive and tweak your Regex : https://regex101.com/

Enjoy coding …

readmore

6. February 2017

Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent Twig template engine and strives to bring modern template language functionality to native PHP templates.

Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Smarty.”

GitHub

readmore

6. February 2017

Voyager is a Laravel Admin Package that includes BREAD(CRUD) operations,
a media manager, menu builder, and much more.

GitHub

readmore

4. February 2017

HTML5DOMDocument extends the native DOMDocument library. It fixes some bugs and adds some new functionality.

  • Preserves white spaces
  • Preserves html entities
  • Preserves void tags
  • Allows inserting HTML code that moves the correct parts to their proper places (head elements are inserted in the head, body elements in the body)
  • Allows querying the DOM with CSS selectors (currently avaiable: *, tagname, tagname#id, tagname.classname, #id, .classname)

GitHub

readmore

4. February 2017

A simple Object Oriented wrapper for GitHub API, written with PHP5.

Uses GitHub API v3. The object API is very similar to the RESTful API.

Github

readmore

10. January 2017

Paw is a full-featured HTTP client that lets you test the APIs you build or consume. It has a beautiful native OS X interface to compose requests, inspect server responses and generate client code out-of-the-box.

This is one of my go-to tools, when test-driving my API endpoints.

Paw for Mac

readmore

20. November 2016

When performing tasks using the Gravity Forms API, handling notifications and hook execution on demand is something that becomes really handy.

Enjoy coding ….

readmore

11. October 2016

The PHP Coding Standards Fixer tool fixes most issues in your code when you want to follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents and many more.

Nice addition to any arsenal of tools 🙂

PHP Coding Standards Fixer

readmore

4. September 2016

Kirby is a PHP file‑based CMS. It has a jQuery-Inspired API and Content can be created with any Markdown Editor.

Its all about simplifying things 🙂

Kirby

readmore

23. August 2016

NextCloud is the next thing after OwnCloud basically shut down.

OwnCloud (stylized ownCloud) is a suite of client-server software for creating file hosting services and using them. OwnCloud is functionally very similar to the widely used Dropbox, with the primary functional difference being that OwnCloud is free and open-source, and thereby allowing anyone to install and operate it without charge on a private server. It also supports extensions that allow it to work like Google Drive, with online document editing, calendar and contact synchronization, and more. Its openness eschews enforced quotas on storage space or the number of connected clients, instead having hard limits (like on storage space or number of users) defined only by the physical capabilities of the server.” – Wikipedia

Here some links clarifying the shutdown and  creation of the new fork NextCloud.

You should upgrade to NextCloud using the following guide, just like upgrading to a new OwnCloud version.

One thing that I am really looking forward to is the new WebRTC video conference integration Spreed.me.

Frank Karlitschek about NextCloud on Twit.TV – Floss Weekly.

NextCloud

readmore