Skip to content

Instantly share code, notes, and snippets.

@JesseObrien
Last active December 10, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JesseObrien/4499350 to your computer and use it in GitHub Desktop.
Save JesseObrien/4499350 to your computer and use it in GitHub Desktop.
Describing how to namespace your files properly in composer.
<?php # /src/PackageName/Subfolder/OtherLib.php
namespace PackageName\Subfolder;
class OtherLib
{
}
<?php # /src/PackageName/PackageClass.php
namespace PackageName;
class PackageClass
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment