If you are looking for manual or lightweight methods, developers often discuss strategies on Reddit and Stack Overflow including:
Some obfuscation techniques may break code that relies on reflection or specific naming conventions (such as some MVC frameworks or dependency injection containers). php obfuscate code