Lumen is the younger brother of Laravel. It is supposed to be faster and it is especially designed for building APIs. With this project, we aim to create a JSON API which will also provide OAuth support, mainly for using…
The latest versions of php come with big performance improvements. However, a downside is that older code might have unexpected behaviour – as the improvement list is quite long.
This is a very simple example on how to use SlimPHP and PDO in a basic API that updates, lists and deletes entries from a table. If you are new to building APIs with SlimPHP, then this is a good…
This is a plugin for WordPress which disables the upper admin area in the font side and just displays a button with a link towards the administration. Using this plugin, the preview of the website is closer to how a…
I got the “Failed asserting that 200 is identical to 404” while using Slim and phpunit. But the API works fine when manually testing. After some digging, I realized that phpunit did not like the way I included files in my app –…
Setup Codeiginiter Please make sure that you have properly configured composer on your machine before following the steps in this tutorial. More info here: Assumptions made in the commands: Your projects folder is called “Code”; The project we use…
Add the following code to your theme’s functions.php file: /* * Show the thumbnail and the title of a WP post with bootstrap media */ // Add the shortcode add_shortcode('show_post_wp_bm', 'get_post_title_and_thumbnail_in_boostrap_media'); // Create the function if(!function_exists('get_post_title_and_thumbnail_in_boostrap_media')): function get_post_title_and_thumbnail_in_boostrap_media($atts, $content=null) {…
Add the following code to your theme’s functions.php file: // Categories walker class Walker_Categories_Template extends Walker_Category { function start_lvl(&$output, $depth=1, $args=array()) { $output .= "\n<ul class=\"list-group\">\n"; } function end_lvl(&$output, $depth=0, $args=array()) { $output .= "</ul>\n"; } function start_el(&$output, $item, $depth=0,…