Router Lite (New)

March 22nd, 2017

Package:
Router Lite
Summary:
Route HTTP requests by URL pattern to callbacks
Groups:
Design Patterns, HTTP, PHP 5, Utilities and Tools
Author:
devg
Description:
This class can route HTTP requests by URL pattern to callbacks...

Read more at https://www.phpclasses.org/package/10221-PHP-Route-HTTP-requests-by-URL-pattern-to-callbacks.html

Tags: ,
Posted in Classes | No Comments »

PHP iTunes Search API (New)

March 21st, 2017

Package:
PHP iTunes Search API
Summary:
Fetch data about podcast and apps from iTunes
Groups:
PHP 5, Searching, Web services, XML
Author:
Yasir Siddiqui
Description:
This class can fetch data about podcast and apps from iTunes...

Read more at https://www.phpclasses.org/package/10220-PHP-Fetch-data-about-podcast-and-apps-from-iTunes.html

Tags: ,
Posted in Classes | No Comments »

PHP iTunes Library (New)

March 21st, 2017

Package:
PHP iTunes Library
Summary:
Fetch data about podcast and apps from iTunes
Groups:
PHP 5
Author:
Yasir Siddiqui
Description:
This class can fetch data about podcast and apps from iTunes...

Read more at https://www.phpclasses.org/package/10220-PHP-Fetch-data-about-podcast-and-apps-from-iTunes.html

Tags: ,
Posted in Classes | No Comments »

PHP TimeZones

March 21st, 2017

Package:
PHP TimeZones
Summary:
Retrieve or validate world time zones
Groups:
Geography, PHP 5, Time and Date
Author:
Peter Kahl
Description:
This is a simple class that can tetrieve or validate world time zones...

Read more at https://www.phpclasses.org/package/10203-PHP-Retrieve-or-validate-world-time-zones.html#2017-03-21-12:39:08

Tags: ,
Posted in Classes | No Comments »

PHP CSS to Inline Styles

March 21st, 2017

Package:
PHP CSS to Inline Styles
Summary:
Convert CSS styles into HTML attribute values
Groups:
HTML, Parsers, PHP 5
Author:
Lars Moelleken
Description:
This package can convert CSS styles into HTML attribute values,

It can take a HTML document string and parses it to process CSS styles and apply them to the attributes of the document directly...

Read more at https://www.phpclasses.org/package/10194-PHP-Convert-CSS-styles-into-HTML-attribute-values.html#2017-03-21-12:38:47

Tags: ,
Posted in Classes | No Comments »

PHP Code Fixer (New)

March 20th, 2017

Package:
PHP Code Fixer
Summary:
Find deprecated functions and variables in PHP
Groups:
Parsers, PHP 5, Utilities and Tools
Author:
Sergey Vanyushin
Description:
This package can find deprecated functions and variables in PHP...

Read more at https://www.phpclasses.org/package/10211-PHP-Find-deprecated-functions-and-variables-in-PHP.html

Tags: ,
Posted in Classes | No Comments »

ZEUS for PHP

March 20th, 2017

zeus-installation.png
Package:
ZEUS for PHP
Summary:
Manage the execution of multiple parallel tasks
Groups:
Console, PHP 5, Unix
Author:
Artur Graniszewski
Description:
This package can manage the execution of multiple parallel tasks...

Read more at https://www.phpclasses.org/package/10198-PHP-Manage-the-execution-of-multiple-parallel-tasks.html#2017-03-20-14:50:57

Tags: ,
Posted in Classes | No Comments »

Finally! CSS Triangles Without Ugly Hacks

March 20th, 2017

css-triangles

Anyone who has tried to make HTML upvote arrows, speech bubbles or other pointy elements, knows that in order to create a CSS-only triangle you have to use some sort of hack. The two most popular solutions are to create your triangles out of borders, or to use unicode characters.

We have to admit that both these CSS hacks are pretty clever but they still are terrible solutions, and as such make our code much uglier and less flexible. For instance, we can’t have a triangle with a background image, since borders and characters can only be one color.

Introducing Clip-path

Clip-path is a fairly new addition to the CSS spec that allows us to show only part of an element and hide the rest. Here is how it works:

Let’s say we have an ordinary rectangular div element. You can click Run in the editor below to view the rendered HTML.

(Play with our code editor on Tutorialzine.com)

To make a triangle we will need the polygon() function. It expects as argument comma separated 2D points which will define the shape of our mask. A triangle = 3 points. Try and change the values to see how the shape transforms.

(Play with our code editor on Tutorialzine.com)

Everything inside the path we created stays, everything outside it is hidden. This way we can make not only triangles, but all sorts of asymmetrical shapes that will behave like regular CSS blocks.

The only drawback of this technique is that we have to carefully calculate the coordinates of our points in order to get a good looking triangle.

Still, it’s way better than using borders or ▲.

Browser Support

If you open the caniuse page for clip-path things don’t look very good at first sight, but in reality the property works perfectly fine unprefixed in Chrome and with the -webkit- prefix in Safari. Firefox users have to wait till version 53. IE/Edge is behind the curve as usual but we can expect support sometime in the future.

Further Reading

The clip-path property has many other tricks up its sleeve, including some SVG magic. To find out more about it check out the links below.

  • Clip-path on MDN – here
  • In-depth tutorial for clip-path on Codrops – here
  • Clippy, a clip-path generator – here

Tags: , , ,
Posted in PHP Tutorials | No Comments »

Trigves Arm (New)

March 19th, 2017

Package:
Trigves Arm
Summary:
Create database tables from array
Groups:
Databases, PHP 5
Author:
Trigve Hagen
Description:
This class can create database tables from array...

Read more at https://www.phpclasses.org/package/10218-PHP-Create-database-tables-from-array.html

Tags: ,
Posted in Classes | No Comments »

New Open Source Programmer’s Editor from Microsoft

March 19th, 2017

Another source code editor has been added to the Free Programmer's Editors, Integrated Development Environment (IDE) and Plain Text Editors. This one is an open source program from Microsoft.

Tags:
Posted in Uncategorized | No Comments »