-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed PHP 5.2 support and moved code to psr-4 file structure
- Loading branch information
Showing
21 changed files
with
3,371 additions
and
3,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
function _hQuery_autoloader($class) { | ||
if ( strncmp($class, 'duzun\\', 6) == 0 ) { | ||
$fn = realpath(__DIR__ . '/src/' . strtr(substr($class, 5), '\\', DIRECTORY_SEPARATOR) . '.php'); | ||
return include_once $fn; | ||
} | ||
return false; | ||
} | ||
|
||
return spl_autoload_register('_hQuery_autoloader'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "duzun/hquery", | ||
"type": "library", | ||
"description": "An extremely fast web scraper that parses megabytes of HTML in a blink of an eye. No dependencies. PHP5+", | ||
"version": "1.7.4", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
|
@@ -27,12 +27,12 @@ | |
"minimum-stability": "RC", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"duzun\\": "src/" | ||
}, | ||
"classmap": [ | ||
"hquery.php" | ||
], | ||
"psr-4": { | ||
"duzun\\": "psr-4" | ||
} | ||
] | ||
}, | ||
"support": { | ||
"email": "[email protected]", | ||
|
@@ -52,7 +52,7 @@ | |
] | ||
}, | ||
"require": { | ||
"php": ">=5.0.0" | ||
"php": ">=5.3" | ||
}, | ||
"require-dev": { | ||
"apigen/apigen": "~4.1", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.