Skip to content

Instantly share code, notes, and snippets.

@Magomogo
Created September 5, 2012 09:13
Show Gist options
  • Save Magomogo/3633857 to your computer and use it in GitHub Desktop.
Save Magomogo/3633857 to your computer and use it in GitHub Desktop.
Hamcrest at google code repository description for composer
{
"repositories": [
{
"type": "package",
"package": {
"name": "hamcrest/hamcrest",
"version": "1.1.0",
"dist": {
"type": "zip",
"url": "https://hamcrest.googlecode.com/files/hamcrest-php-1.1.0.zip"
},
"include-path": ["Hamcrest-1.1.0/"],
"autoload": {
"psr-0": { "Hamcrest_": "Hamcrest-1.1.0/" },
"files": ["Hamcrest-1.1.0/Hamcrest/Hamcrest.php"]
}
}
}
],
"require": {
"hamcrest/hamcrest": "1.1.0"
}
}
@isidromerayo
Copy link

Nice!

@brechtdewinne
Copy link

Nice one, thx!

@schickling
Copy link

In fact even there is an composer module available I prefer this "method" since I control class autoloading via require and require-dev.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment