Skip to content

Instantly share code, notes, and snippets.

@barnabywalters
Last active July 12, 2022 16:37
Show Gist options
  • Save barnabywalters/8824041 to your computer and use it in GitHub Desktop.
Save barnabywalters/8824041 to your computer and use it in GitHub Desktop.
An attempt at making a Composer-compatible repository in a gist
.DS_Store
composer.phar
/vendor/
{
"name": "barnabywalters/gist-test",
"description": "A test to see if a gist can be used successfully as the repo for a composer package",
"license": "MIT",
"require": {},
"autoload": {
"files": ["Gist.php"]
}
}
<?php
namespace BarnabyWalters;
function gist() {
return "This does nothing useful";
}
@barnabywalters
Copy link
Author

ha ha this is from so long ago I have no idea. I assume it would work due to being a git repo behind the scenes, but without gh actions you’d miss out on useful features like packagist auto-updating on changes

@Bugfighter
Copy link

packagist - good point :-) Thanks for your reply!!

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