Profile cover photo
Profile photo
Lars Moelleken
461 followers -
Webdeveloper && Sysadmin === DevOp
Webdeveloper && Sysadmin === DevOp

461 followers
About
Lars's posts

Hi, we are searching for an Android Developer who can support us by writing an App. The App can receive messages and you can swipe the messages, so that you can answer or delete the messages (like in an e-mail client) and the App need to import the contacts from the phone.

Who we are: menadwork GmbH (Düsseldorf) | http://www.menadwork.com/

Contact (me): lmoelleken@menadwork.com

Post has attachment
// -----------------------
HTML Compressor and Minifier via PHP 5.3+
// -----------------------
HtmlMin is a fast and very easy to use PHP5.3+ library that minifies given HTML5 source by removing extra whitespaces, comments and other unneeded characters without breaking the content structure. As a result pages become smaller in size and load faster. It will also prepare the HTML for better gzip results, by re-ranging (sort alphabetical) attributes and css-class-names.

// -----------------------
Usage:
// -----------------------

$html = '<html>\r\n\t<body>\xc3\xa0</body>\r\n\t</html>';
$htmlMin = new HtmlMin();
echo $htmlMin->minify($html); // '<html><body>à</body></html>'

// -----------------------
Options:
// -----------------------

$htmlMin = new HtmlMin();

/*
* Protected HTML (inlince css / inline js / conditional comments) are still protected,
* no matter what settings you use.
*/

$htmlMin->doOptimizeAttributes();
$htmlMin->doRemoveComments();
$htmlMin->doRemoveDefaultAttributes();
$htmlMin->doRemoveDeprecatedAnchorName();
$htmlMin->doRemoveDeprecatedScriptCharsetAttribute();
$htmlMin->doRemoveDeprecatedTypeFromScriptTag();
$htmlMin->doRemoveDeprecatedTypeFromStylesheetLink();
$htmlMin->doRemoveEmptyAttributes();
$htmlMin->doRemoveHttpPrefixFromAttributes();
$htmlMin->doRemoveValueFromEmptyInput();
$htmlMin->doRemoveWhitespaceAroundTags();
$htmlMin->doSortCssClassNames();
$htmlMin->doSortHtmlAttributes();
$htmlMin->doSumUpWhitespace();

-> https://github.com/voku/HtmlMin

Post has shared content
A PHP array manipulation library. Compatible with PHP 5.3+, PHP 7, and HHVM.

Arrayy::create(['Array', 'Array'])>unique()>append('y')->implode() // Arrayy
Latest Classes: Arrayy (New) - Package: Arrayy Summary: Manipulate arrays using a fluent interface Groups: Data types, PHP 5 Author

Post has shared content
Notable PHP package: Portable UTF-8 - Notable PHP package: Portable UTF-8 By Manuel Lemos Nowadays PHP has different extensions to manipul

Post has shared content
Notable PHP package: Portable UTF-8 - Notable PHP package: Portable UTF-8 By Manuel Lemos Nowadays PHP has different extensions to manipul

Post has attachment
try "mozilla/mozjpeg" with libjpeg-turbo 1.5.0 -> upload a JPEG file and see the result | http://image-api.suckup.de/ #perf #webdev

Post has shared content
"Anti-XSS" library for PHP
Anti XSS - Library for PHP #php   #dev   #security  

------------------
Install:
------------------

composer require voku/anti-xss

------------------
Examples / Tests:
------------------

https://github.com/voku/anti-xss/blob/master/tests/XssTest.php

------------------
Info:
------------------

1) use filter_input() - don't use GLOBAL-Array (e.g. $_SEESION, $_GET, $_POST) directly | http://php.net/manual/de/function.filter-input.php

2) use HTML Purifier if you need a more configurable solution | http://htmlpurifier.org/

3) DO NOT WRITE YOUR OWN REGEX TO PARSE HTML!

4) READ THIS TEXT -> XSS (Cross Site Scripting) Prevention Cheat Sheet | https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet

5) TEST THIS TOOL -> Zed Attack Proxy (ZAP) | https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project

Post has shared content
"Portable UTF-8 library with polyfill / shim for Iconv, Intl, Mbstring, Normalizrer etc..."

https://packagist.org/packages/voku/portable-utf8

Post has shared content

Post has shared content
Wait while more posts are being loaded