Skip to content

Commit

Permalink
Add composer.json file for easy install via composer.
Browse files Browse the repository at this point in the history
Composer: http://getcomposer.org/

Since HTML Purifier is not completely psr-0 compatible (a classmap is
not enough for autoloading), the package-description does not contain
anything autoload-related. The user has to include the autoloader
himself.

This lets us create an entry on packagist which allows installing HTML
Purifier without the need to declare a repository in projects; it also
makes it easy to create libraries which want to use HTML Purifier using
composer.

Signed-off-by: Benjamin Steininger <[email protected]>
  • Loading branch information
robo47 authored and ezyang committed Mar 16, 2012
1 parent 31dce29 commit 9fcffd6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "ezyang/htmlpurifier",
"description": "Standards compliant HTML filter written in PHP",
"type": "library",
"keywords": [ "html"],
"homepage": "http://htmlpurifier.org/",
"license": "LGPL",
"authors": [
{
"name": "Edward Z. Yang",
"email": "[email protected]",
"homepage": "http://ezyang.com"
}
],
"require": {
"php": ">=5.2"
}
}

0 comments on commit 9fcffd6

Please sign in to comment.