All posts tagged “Classes”

Useful PHP Classes & Libraries For Fast Development

PHP is the most popular scripting language that has been widely used in the web development. You can find loads of resources that include documentations, tutorials, tools and other such resources about PHP on the internet. PHP has made it quite easier for the developers to create a better web environment. PHP is a feature rich language that allows you to accomplish several tasks by default. There are many resources for PHP as well to further help the developers.

In this compilation, you will unearth some of useful and of course free to use high quality PHP classes and libraries that will help you with creating good looking charts, form validation, parsing feeds, better image or database handling and more. Here is the list. Enjoy!

Php Fast Cache

PhpFastCache is a high-performance, distributed object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

pchart

pChart is a PHP class oriented framework designed to create aliased charts.

Munee

Munee is a PHP5.3 library to easily on-the-fly compile LESS, SCSS, or CoffeeScript, resize/manipulate images on-the-fly, minify CSS and JS, and cache assets locally and remotely for lightening fast requests. No need to change how you include your assets in your templates.

Gantti

A simple PHP Gantt Class.

Whoops

whoops is an error handler base/framework for PHP. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it’s a simple yet powerful stacked error handling system.

Php Image Cache

Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.

Wideimage

An open-source PHP library for image manipulation.

Imagine

Imagine is a OOP library for image manipulation built in PHP 5.3 using the latest best practices and thoughtful design that should allow for decoupled and unit-testable code.

Php Image Workshop

PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.

PHP-Error

Better error reporting for PHP, and prettier too!

Detector

Detector is a simple, PHP- and JavaScript-based browser- and feature-detection library that can adapt to new devices & browsers on its own without the need to pull from a central database of browser information.

Opauth

Opauth is a multi-provider authentication framework for PHP, inspired by OmniAuth for Ruby.

Mobile Detect

Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

Swift Mailer

Swift Mailer integrates into any web app written in PHP 5, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features.

Ratchet Websocket For Php

Ratchet is a PHP library to let developers create real-time, bi-directional apps between clients and servers over WebSockets. It makes building event-driven apps (rather than traditional HTTP request/response apps) quick and easy.

Hybridauth

HybridAuth enables developers to easily build social applications and tools to engage websites visitors and customers on a social level by implementing social sign-in, social sharing, users profiles, friends list, activities stream, status updates and more.

Phpthumb

phpThumb() uses the GD library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. The output size is configurable (can be larger or smaller than the source), and the source may be the entire image or only a portion of the original image.

Requests

Requests is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.

Htmlpurifier

HTML Purifier is a standards-compliant HTML filter library written in PHP.

Cakephp

CakePHP makes building web applications simpler, faster and require less code.

Fpdf

FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

Adodb

ADOdb is a database abstraction library for PHP.

Recaptcha

The reCAPTCHA PHP Library provides a simple way to place a CAPTCHA on your PHP website, helping you stop bots from abusing it. The library wraps the reCAPTCHA API.

Magpierss

MagpieRSS provides an XML-based (expat) RSS parser in PHP.

Sajax

Sajax is an open source tool to make programming websites using the Ajax framework — also known as XMLHTTPRequest or remote scripting — as easy as possible. Sajax makes it easy to call PHP, Perl or Python functions from your webpages via JavaScript without performing a browser refresh.

Php Excel

Project providing a set of classes for the PHP programming language, which allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, … This project is built around Microsoft’s OpenXML standard and PHP.

Highlighter

GeSHi started as an idea to create a generic syntax highlighter for the phpBB forum system, but has been generalised to this project.

Validation

The most awesome validation engine ever created for PHP.

Php Data Grid

Simple, innovative and powerful tool for generating data-bound grid control, specially designed for web developers.

Phpunit

PHPUnit is a programmer-oriented testing framework for PHP.It is an instance of the xUnit architecture for unit testing frameworks.

Projects Text To Image

This script is a means to convert a string of text into an image. This has some simple uses such as displaying text such as email address that cannot be programmatically found.

Country From IP

Country From IP: Lookup the country of a given IP address.

Php powerpoint

Project providing a set of classes for the PHP programming language, which allow you to write to and read from different file formats, like PowerPoint 2007, … This project is built around Microsoft’s OpenXML standard and PHP.

PhpRack

phpRack Integration Testing Framework.

Gaufrette

PHP5 library that provides a filesystem abstraction layer – will be a feast for your files!

Idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.

Underscore

Underscore.php is a PHP port of the popular Underscore.js library. In addition to porting Underscore’s functionality, Underscore.php includes matching unit tests. Underscore.php requires PHP 5.3 or greater.

Snappy

PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page.


SmashingApps.com

Adding and Removing HTML Classes Upon Request With jQuery

Adding new HTML class is a no-brainer; just open the HTML document, locate what you want to add, insert and name the class. But when it comes to building an interactive website that allows your visitors to engage with it, you might need to modify, insert, and remove the HTML classes upon request.

You can do this with jQuery. This example function below will add and remove my-new-class to the <div>.

 // ## add class $  ('div').addClass('my-new-class'); // ## remove class $  ('div').removeClass('my-new-class'); 

We can also use standard JavaScript code to add/remove HTML classes like so:

 // add class document.getElementById('elem').className = 'my-new-class'; // remove class document.getElementById('elem').className = document.getElementByTag('div').className.replace( /(?:^|\s)my-new-class(?!\S)/g , '' ) 

The code as you can see above is less straightforward than when we are doing it with a JavaScript Framework jQuery. But if you don’t want to rely on a framework, you can always use a new JavaScript API called classList.

Using classList API

Similar to jQuery, classList provides a set of methods that allow us to modify HTML classes.

In a case where there is a div with multiple classes, we can retrieve the classes that are assigned in the div using classList.

 var classes = document.getElementByID('elem').classList; console.log(classes); 

When we open the browser Console, we can see the list of the classes.

To add and remove class, we can use .add() and .remove().

 var elem = document.getElementByID('elem'); // add class elem.classList.add('my-new-class'); // remove class elem.classList.remove('my-new-class'); 

Adding multiple classes can also be done by separating each class with a comma:

 elem.classList.add('my-new-class', 'my-other-class'); 

To check whether certain elements contain the specified class, we can use .contains(). It will return true if the class specified is present, and return false if it does not.

 elem.classList.contains('class-name'); 

We can also toggle the class using .toggle(). The following code snippet shows how we bind the .toggle()method with a mouse click event.

 var button = document.getElementById('button'); function toggle() { elem.classList.toggle('bg'); } button.addEventListener('click', toggle, false); 

Check out the demo in action from the following links.

Final Thought

classList is a new native JavaScript API that is also introduced along with HTML5. It is neat and simple, and works in the following browsers: Firefox 3.6, Opera 11.5, and Chrome 8, and Safari 5.1. It is however absent in Internet Explorer 9 and below, so you may have to use the Polyfills when implementing classList API in Internet Explorer.

Further Resource


    




hongkiat.com

Course Horse NYC: Classes to Take This Week

We’ve teamed up with CourseHorse to bring you a selection of NYC classes that will be of particular interest to you. Here’s what we recommend checking out in the next seven days. As a special treat, DWL readers can get $ 5 off any class with the promo code: designworklife.

coursehorse_040813

Here’s what’s happening this week:

Introduction to Web Usability

Tonight, April 8th, 6:00PM–8:00PM / $ 50 (other dates available)
This class will teach students how to craft web pages that are clear and easy to navigate. By learning graphic design fundamentals and studying usability guidelines, students will acquire the tools necessary to create a clean, functional site. These are interactive seminars that include hands-on exercises.
Sign up here.

Refining Your Public Speaking and Presentation Skills

Tonight, April 8th, 8:30PM–10:30PM / $ 75
This 8-person class gives each student the chance to articulate their specific public-speaking goals and give a 1– 2 minute pitch/speech. You’ll get expert feedback in a supportive environment and leave this workshop with the physical experience of being in front of a group.
Sign up here.

Organic Social Growth

Wednesday, April 10th, 8:15PM–9:45PM / $ 30
Reaching 1 million unique visitors per month in less than one year is no easy feat. In this class, I’ll share the actionable tips & tricks you can use to hopefully achieve it even faster than we did thanks to social, organic, high-quality growth.
Sign up here.

Crafting Tablet Magazines

Thursday, April 11th, 8:15PM–9:45PM / $ 30
This class will go through the history of tablet-based magazines, discuss who the major players are and explore the various options available to magazine publishers as they enter the tablet age.
Sign up here.

The Hand-Made Book: An Introduction

Sunday, April 14th, 6:00PM–9:00PM / $ 60
Students will learn the basics of hand-made book production and practice several simple binding techniques that can be done at home.
Sign up here.

___

Want to plan farther ahead? CourseHorse offers a ton of other NYC classes, both this week and down the road. The designprogrammingphotography and business classes may be of particular interest.


Design Work Life

Course Horse NYC: Classes to Take This Week

We’ve teamed up with CourseHorse to bring you a selection of NYC classes that will be of particular interest to you. Here’s what we recommend checking out in the next seven days. As a special treat, DWL readers can get $ 5 off any class with the promo code: designworklife.

coursehorse_040113

Here’s what’s happening this week:

Composition and Framing

Friday, April 5th, 5:00PM–7:00PM / $ 45 (other dates available)
Improve your imagery with this 2-hour seminar covering common tricks and tips for shooting different scenes.
Sign up here.

Graphic Design Fundamentals

Wednesday, April 3rd, 7:00PM–9:00PM / $ 50
In today’s competitive web environment, designing an interface that is both engaging and easy to navigate is a necessity. This course, which is tailored to non-designers, will teach students about the fundamental concepts of graphic design and how to discuss these ideas using key terminology.
Sign up here.

WordPress

Starting Tuesday, April 2nd, 2:00PM–5:00PM / $ 285 (multiple sessions)
WordPress is the world’s leading Blogging/Content Management System because anyone can make any kind of web site with it. In this class you’ll be learning the fundamental things you need to know to make your web site.
Sign up here.

Intro to Business Development: The Art of 

Starting Tuesday, April 2nd, 6:00PM–8:30PM / $ 275 (multiple sessions)
Learning how to most effectively sell both your product and yourself is a key component in growing a successful business. This four-part workshop series provides a detailed understanding of the sales process, from identifying your audience and making key customer connections, to creating effective presentations and nailing the pitch. Students will come away with valuable sales and networking techniques, as well as a Short Form, Elevator Pitch, and Sales Presentation.
Sign up here.

Photoshop CS5 Photo Printing and Color

Wednesday, April 3rd,  9:00AM–4:30PM / $ 395 
In this course, students will use color management techniques and color correct images to ensure optimal print output.
Sign up here.

___

Want to plan farther ahead? CourseHorse offers a ton of other NYC classes, both this week and down the road. The designprogrammingphotography and business classes may be of particular interest.


Design Work Life

Cool Hunting Designer Master Classes in Milan: Present your latest work for critique on stage during this year’s design fairs

Cool Hunting Designer Master Classes in Milan

This year, in addition to our annual coverage of Milan’s Design Week, we’ve teamed up with Heineken to hold a series of Designer Master Classes on 9, 10 and 11 April 2013 at The Heineken Magazzini in Milan’s Zona Tortona. In order to give our readers access to some…

Continue Reading…


Cool Hunting

Course Horse NYC: Classes to Take This Week

We’ve teamed up with CourseHorse to bring you a selection of NYC classes that will be of particular interest to you. Here’s what we recommend checking out in the next five days. As a special treat, DWL readers can get $ 5 off any class with the promo code: designworklife.

coursehorse_032513

Here’s what’s happening this week:

Drawing and Painting Fundamentals Class

Tuesday, March 26th, 9:00AM–12:00PM / $ 35 (other dates available)
These classes are structured around drawing and painting exercises to strengthen fundamentals.
Sign up here.

Crafting Tablet Magazines

Tuesday, March 26th, 6:00PM–7:30PM / $ 30
This class will go through the history of tablet-based magazines, discuss who the major players are and explore the various options available to magazine publishers as they enter the tablet age.
Sign up here.

Crash Course: DSLR (3 hours)

Tuesday, March 26th, 6:30PM–9:30PM / $ 60 (other dates available)
This 3-hour workshop will focus entirely on getting acquainted with all your digital camera’s features and functions.
Sign up here.

Getting Started With WordPress

Thursday, March 26th, 8:00PM–9:30PM / $ 30
Create a professional-looking website in no time by learning all about the WordPress platform, from the basics to the most advanced features.
Sign up here.

Blockprinting

Wednesday, March 27th,  6:30PM–9:30PM / $ 75 (other dates available)
Learn the ancient technique of block printing and go home with a whole new skill to continue exploring on your own! In this class we will learn how to carve and print by hand from rubber and linoleum blocks, following the traditional form of printmaking.
Sign up here.

___

Want to plan farther ahead? CourseHorse offers a ton of other NYC classes, both this week and down the road. The designprogrammingphotography and business classes may be of particular interest.


Design Work Life

Grammar nazis take on London’s graffiti artists to promote online English classes

Tumblr_mjun70ufx21s8qkvho1_1280_large

Recently, something strange has been happening to the grammatically-questionable graffiti that covers much of London. One graffitied billboard in Tower Hill (pictured above) used to say “I wud,” pointing to a large image of a young woman wearing one of two pairs of glasses she apparently purchased for just £69 (around $ 105). The author’s bold and original statement saw its spelling corrected from “wud” to “would,” and it’s one of many such corrections London’s graffiti artists have endured over the past weeks. “Mek Money Get Huneys,” has been decoded and changed to Make Money Get Honeys; “Hate the Poilce” now says hate the Police; and “Smash the Olimpiks” was clarified to read Smash the Olympics.

Continue reading…

The Verge – All Posts

Course Horse NYC: Classes to Take This Week

We’ve teamed up with CourseHorse to bring you a selection of NYC classes that will be of particular interest to you. Here’s what we recommend checking out in the next five days. As a special treat, DWL readers can get $ 5 off any class with the promo code: designworklife.

coursehorse_031813

Here’s what’s happening this week:

Deconstructing iOS Interface Design

Tonight, March 18th, 6:00PM–7:30PM / $ 30
Find out what makes a great iOS app great. Discover the secrets of iOS design and critique the best (and worst) designed apps out there today.
Sign up here.

Digital Photography I

Tuesday, March 19th, 10:15AM–12:15PM / $ 305 (other dates available)
This photography course covers the foundations of image making. Course includes exposure control, depth of field & motion blur, framing & shooting strangers, built in flash, and the basics of digital post processing.
Sign up here.

HTML5 & CSS3 

Tuesday, March 19th, 6:00PM–9:00PM / $ 650 (other dates available)
If you’ve been creating webpages and want to learn what’s new in HTML5 & CSS3, this training is for you. There are new HTML tags and a slew of cool new CSS effects such as shadows, rounded corners and gradients. We’ll show you how to use them and deal with older browsers that don’t support them.
Sign up here.

Adobe Lightroom 4: Manage & Edit Your Photos

Thursday, March 21st, 9:00AM–4:30PM / $ 650
Lightroom is an amazing program that can help you organize, optimize and share your photos. This introductory course will cover the basics of importing photos from your camera into Lightroom’s catalog, editing and organizing your pictures, optimizing and developing your photos for printing, creating slideshows, webpages and printed books to share your work, publishing your pictures on social media sites and keeping your photo library safe by implementing backup strategies.
Sign up here.

Essential Things to Know When Forming Your Startup

Thursday, March 21st, 6:00PM–9:00PM / $ 55
These workshops will provide founders and entrepreneurs with a practical understanding of the essential things to know in order to navigate through the early stage of a company’s existence. Topics will include: essential components of starting a scalable company, raising capital, startup finance and creating materials for fundraising.
Sign up here.

___

Want to plan farther ahead? CourseHorse offers a ton of other NYC classes, both this week and down the road. The designprogrammingphotography and business classes may be up your alley.


Design Work Life

Course Horse NYC: Classes to Take This Week

We’ve teamed up with CourseHorse to bring you a selection of NYC classes that will be of particular interest to you. Here’s what we recommend checking out in the next five days. As a special treat, DWL readers can get $ 5 off any class with the promo code: designworklife.

coursehorse_031113

Here’s what’s happening this week:

Mobile App Development Bootcamp

Wednesday, March 13th, 6:00PM–9:00PM / $ 75
This workshop will teach you about the process of creating an app from start to finish — from learning about the appverse itself to development, design, economics, management, and marketing. With your newfound knowledge, you’ll be on the fast track to creating your app and getting it live and online quickly, efficiently, and in a manner that will maximize its potential for success.
Sign up here.

Intro to eCommerce: Strategies for Digital 

Tuesday, March 12th, 6:00PM–7:30PM / $ 30
Intro to eCommerce is a high level class designed to provide early stage and aspiring digital merchants a holistic view of the eCommerce ecosystem. Additionally, the class will give students a detailed overview of the fundamental processes & considerations essential to successfully launching an online store.
Sign up here.

Social Media & Online Marketing Manager

Wednesday, March 13th, 7:00PM–9:00PM / $ 250
This class will help you to figure out how the power of technology and the transition between Mainstream Media and New Media has been affecting your business. Attendees will also learn how you can advertise your business, spending less money for a bigger target audience. You will develop the Social Media Strategy appropriated for your personality and business, besides teaching you how to use several Social Media tools to do Market Research to better understand your audience.
Sign up here.

Creating Ebooks with Adobe InDesign

Monday, March 11th, 6:00PM–9:00PM / $ 545
Students will create an EPUB file that can be displayed on all eReaders (iPad, Nook, Sony Reader, etc.) as well as a Mobi file for Amazon’s Kindle.
Sign up here.

Google Analytics Seminars for Success

Tuesday, March 12th, 8:30AM–5:00PM / $ 948 (other dates available)
At our Seminar for Success we’ll dig in and explore ways to use your Google Analytics to gather more meaningful data, analyze it better, and make your website perform.
Sign up here.

Nuts & Bolts

Friday, March 15th, 6:00PM–8:00PM / $ 100
This safari is for those who comprehend the “scene” settings and other elementary controls of their cameras but would like a better understanding of white balance, File Formats (RAW, JPG etc.), color space, depth of field, flash, etc.
Sign up here.

___

Want to plan farther ahead? CourseHorse offers a ton of other NYC classes, both this week and down the road. The design, programming, photography and business classes may be up your alley.


Design Work Life

Course Horse Featured Classes: Online Marketing

coursehorse_0211

Nowadays maintaining or growing a business requires a robust online presence. That landscape is changing constantly, so takin a focused class on a related topic may be a great way to avoid getting overwhelmed by information overload:

  • Developing Your Brand on Facebook and Twitter: Gone are the days when a brand was simply a logo and a catch phrase. Social media is facilitating a two-way dialogue between customers and companies, both large and small. Customers can now interact with and directly shape their favorite brands. More info.
  • Digital Brand Strategy: In this 8-week course, students will dive deep into the world of digital marketing, while planning and executing an integrated online marketing campaign. More info.
  • Instagram for Business and Brands: Co-instructed by two expert instructors skilled in photography, Instagram, and brand strategy, this workshop will give you a one-day crash course in how to craft the ultimate Instagram presence for your company or brand. More info.
  • Digital Content Strategy: This course will help you define and expand your content business by using audience data to drive creative decisions. You’ll create a strategy that considers brand identity, audience habits, cultural trends, and revenue initiatives. More info.
  • Email in the Marketing Mix: Which channel has one of the highest returns on investment? If you said email, you’re on the right track and this course will help you continue on that knowledge path. Email marketing allows you to reach valuable customers rapidly, frequently, and economically while delivering among the highest returns of all direct marketing channels… More info.


Design Work Life