See the blog post Quick and dirty PHP autoloading using Composer for details of how to use this.
Last active
December 19, 2016 19:47
template-PHP-project example
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
#! /usr/bin/php | |
<?php | |
require_once dirname(__DIR__) . '/vendor/autoload.php'; | |
require_once "foo.inc"; | |
?> | |
Demo! | |
<?php | |
\Demo\Util::hello(); | |
foobar(); | |
# vim: set tabstop=2 shiftwidth=2 : | |
# Local Variables: | |
# tab-width: 2 | |
# end: | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment