Last active
July 12, 2022 16:37
-
-
Save barnabywalters/8824041 to your computer and use it in GitHub Desktop.
An attempt at making a Composer-compatible repository in a gist
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
.DS_Store | |
composer.phar | |
/vendor/ |
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
{ | |
"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"] | |
} | |
} |
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
<?php | |
namespace BarnabyWalters; | |
function gist() { | |
return "This does nothing useful"; | |
} |
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
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
looking for the same thing - did your tryout here work?