Thema: PHP
-
WordPress Gear
WordPress Gear
-
PHP Snippet: isValidEmailAddress($email)
-
Yii Framework
Yii is one of the lesser known PHP Frameworks, but it has been around for quite some time and is notably popular with professional developers who hate faffing about when building web applications. It’s a sort-of secret tip and go-to toolkit for those who hate the shoddy and sub-par data- and application models of WordPress,…
-
Laravel Content Management Systems
October, Asgard, Lavalite, Coaster, Photon, Pyro
-
Rasmus Lerdorf, creator of PHP on PHP in 2018
„PHP runs crappy code really, really well.“ – Rasmus Lerdorf Rasmus Lerdof PHP Talk on PHP https://www.youtube.com/watch?v=rKXFgWP-2xQ
-
OWASP – Open Web Application Security Project
OWASP
-
Get the clients IP address
$clientIpAdress = isset($_SERVER[‚HTTP_CLIENT_IP‘]) ? $_SERVER[‚HTTP_CLIENT_IP‘]:isset($_SERVER[‚HTTP_X_FORWARDED_FOR‘]) ? $_SERVER[‚HTTP_X_FORWARDED_FOR‘] : $_SERVER[‚REMOTE_ADDR‘]; Do *not* use this on it’s own for security purposes!
-
WordPress + Laravel
WordPress & Laravel Laravel WP Backend Corcel
-
Laravel (2018)
The all-out hipster among the PHP frameworks. Laravel LaraAdmin (Admin UI Toolkit) LaraCom (Laravel based E-Commerce) Lumen (Laravel MicroFW) Spark (Laravel Scaffolding) Statamic (Laravel Commercial CMS)
-
Into the Abyss
The mess that is WordPress and how to make the best of it (Presentation Slides) We had a neat Web Engineering Group Düsseldorf Meetup at the old Trivago location (they’re currently moving). Once again an awesome event with a very nice lineup of speakers. Enjoyed it a lot.
-
PHP Standard Recommendations
PSR-1 PSR-2 PSR-3 PSR-4 PSR-6 PSR-7 PSR-11 PSR-13 PSR-15 PSR_16
-
PHP: URL path to file in same directory
<?php $urlPathToFileInSameDirectory = (isset($_SERVER[‚HTTPS‘])) ? „https“ : „http“ . str_replace(‚/index.php‘,““,str_replace(basename(__FILE__),““,“://$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]“)).’/MyFileName.txt‘; ?>
-
Prevent perpetual WordPress login redirects in local and test installations
To prevent perpetual login redircet loops in local/development WordPress installations add this function to your wp-config.php (have it return the users ID you want to authenticate): function wp_validate_auth_cookie($cookie=“,$scheme=“) { return 1; // admin user id }
-
PHP Frameworks & Toolkits
Symfony Phalcon CakePHP ZendFW 2ndLayer FuelPHP Yii Laravel PHPixie
-
Online IDEs
Codiad Ace Editor Atom in Orbit IceCoder Cloud 9 CodeEnvy Codingground Codeanywhere Koding ShiftEdit Orion Eclipse Che Eclipse Dirigible (Runtime Environment) Jdoodle (Online Compiler) Zed
-
Remove „Private:“ from the titles of private WordPress pages
# add to functions.php of your theme function the_title_trim($title) { $title = attribute_escape($title); $findthese = array( ‚#Protected:#‘, ‚#Private:#‘ ); $replacewith = array( “, // What to replace „Protected:“ with “ //What to replace „Private:“ with ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter(‚the_title‘, ‚the_title_trim‘);
-
WordPress Debugging
Debug Bar Debug Bar Taxonomies Debug Bar Post Types Debug Bar Shortcodes Kint Debugger
-
Quoted of the Web: „PHPs badness is its advantage“
I love Python, I think JavaScript is sort of OK and I did a lot of serious programming in ActionScript 2&3, both of which are quite simular to JS. I was basically forced into doing PHP by the market. I never really liked PHP but I really never hated it either. The thing about PHP…
-
WordPress Path to actual active theme / Pfad zum eigentlich aktiven Theme
preg_replace(„/\/\w*?\.css/“, „/“, get_stylesheet_uri()); Gibt den Pfad des aktiven Themes zurück, auch wenn dies ein Child-Theme ist. Vorrausgesetzt, das Child Stylesheet ist mit WordPress Bordmitteln im Theme eingebunden und aktiviert. Returns the path of the actual active theme, even if this is a child theme. This only works if the child themes stylesheet is included with…
-
WordPress Updates ohne/without FTP
Disable FTP requirement for Pluing Installations and Updates / FTP Anforderung für Plugin und Updateinstallation deaktivieren: //add to wp-config.php define(‚FS_METHOD‘,’direct‘);
-
WordPress Plugin Pfad/Path
Pfad zum Plugin in WordPress / Path to plugin in WordPress plugins_url().“/[PluginDirectoryName]“