phpat
✔️ PHP Architecture Tester - Easy architecture testing for PHP
File Explorer
Download Latest Version (.zip)- action.yaml
- action.yaml
- run.sh
- bug_report.md
- feature_request.md
- question.md
- gh-pages-build.yml
- gh-pages-deploy.yml
- integrate.yaml
- sync-built-in-classes.yaml
- CODE_OF_CONDUCT.md
- dependabot.yml
- logo-small.png
- check-stubs.php
- php-cs-fixer.php
- phpstan-phpat.neon
- psalm.xml
- abstract.png
- aggregates.png
- claude.png
- claude.svg
- contributing.png
- example.gif
- extra.css
- icon.png
- interface.png
- layered.png
- logo-small.png
- logo.png
- monorepos.png
- mvc.png
- rules.png
- trait.png
- assertions.md
- configuration.md
- other.md
- rules.md
- selectors.md
- about.md
- CHANGELOG.md
- contributing.md
- examples.md
- getting-started.md
- index.md
- project-guidelines.md
- UPGRADE-0.10.md
- BuiltInClasses.php
- TypeNodeParser.php
- ExistsDeclaration.php
- ExistsRule.php
- AbstractDeclaration.php
- AbstractRule.php
- EnumDeclaration.php
- IsEnumRule.php
- FinalDeclaration.php
- IsFinalRule.php
- InterfaceDeclaration.php
- IsInterfaceRule.php
- InvokableDeclaration.php
- IsInvokableRule.php
- IsReadonlyRule.php
- ReadonlyDeclaration.php
- ClassnameRule.php
- NamedDeclaration.php
- HasOnlyOnePublicMethodRule.php
- OnePublicMethodDeclaration.php
- HasOnlyOnePublicMethodNamedRule.php
- OnePublicMethodNamedDeclaration.php
- DeclarationAssertion.php
- ApplyAttributeAssertion.php
- ClassAttributeRule.php
- ConstructAssertion.php
- NewRule.php
- AllAttributesRule.php
- CatchBlockRule.php
- ClassPropertyRule.php
- ConstantUseRule.php
- DependAssertion.php
- DirectInterfacesRule.php
- DocMethodTagRule.php
- DocMixinTagRule.php
- DocParamTagRule.php
- DocPropertyTagRule.php
- DocReturnTagRule.php
- DocThrowsTagRule.php
- DocVarTagRule.php
- IncludedTraitsRule.php
- InstanceofRule.php
- MethodParamRule.php
- MethodReturnRule.php
- NewRule.php
- ParentClassRule.php
- StaticMethodRule.php
- ExtendAssertion.php
- ParentClassRule.php
- ImplementAssertion.php
- ImplementedInterfacesRule.php
- IncludeAssertion.php
- IncludedTraitsRule.php
- RelationAssertion.php
- Assertion.php
- Constraint.php
- AbstractExtractor.php
- ClassnameExtractor.php
- EnumExtractor.php
- ExistsExtractor.php
- FinalExtractor.php
- InterfaceExtractor.php
- InvokableExtractor.php
- OnePublicMethodExtractor.php
- PublicMethodNamedExtractor.php
- ReadonlyExtractor.php
- MethodTagExtractor.php
- MixinTagExtractor.php
- PropertyTagExtractor.php
- ParamTagExtractor.php
- ReturnTagExtractor.php
- ThrowsTagExtractor.php
- VarTagExtractor.php
- AllAttributesExtractor.php
- AllInterfacesExtractor.php
- AllParentsExtractor.php
- AllTraitsExtractor.php
- CatchBlockExtractor.php
- ClassAttributeExtractor.php
- ClassPropertyExtractor.php
- ConstantUseExtractor.php
- DirectInterfacesExtractor.php
- InstanceofExtractor.php
- MethodParamExtractor.php
- MethodReturnExtractor.php
- NewExtractor.php
- ParentExtractor.php
- StaticMethodCallExtractor.php
- AllOfSelectorModifier.php
- AndModifier.php
- AnyOfSelectorModifier.php
- AtLeastCountOfSelectorModifier.php
- AtMostCountOfSelectorModifier.php
- NoneOfSelectorModifier.php
- OneOfSelectorModifier.php
- All.php
- AppliesAttribute.php
- ClassExtends.php
- ClassImplements.php
- ClassIncludes.php
- Classname.php
- ClassNamespace.php
- Filepath.php
- IsAbstract.php
- IsAttribute.php
- IsEnum.php
- IsError.php
- IsException.php
- IsFinal.php
- IsInterface.php
- IsNotAbstract.php
- IsNotFinal.php
- IsReadonly.php
- IsStandardClass.php
- IsThrowable.php
- IsTrait.php
- Selector.php
- SelectorInterface.php
- SelectorPrimitive.php
- Statement.php
- StatementBuilder.php
- TestRule.php
- AbstractStep.php
- BuildStep.php
- CanOnlyStep.php
- ConstraintStep.php
- Rule.php
- ShouldNotStep.php
- ShouldStep.php
- SubjectExcludeOrConstraintStep.php
- SubjectStep.php
- TargetExcludeOrTipOrBuildStep.php
- TargetStep.php
- TipOrBuildStep.php
- PHPat.php
- RelationRule.php
- Rule.php
- RuleValidator.php
- RuleValidatorInterface.php
- TestExtractor.php
- TestExtractorInterface.php
- TestParser.php
- Configuration.php
- ShouldNotHappenException.php
- AssertionTest.php
- CleanClassesTest.php
- ConfigurationTest.php
- ClassUnderFooNamespace.php
- ClassUnderFooBarNamespace.php
- SimpleAbstractClass.php
- SimpleAbstractClassTwo.php
- SimpleAttribute.php
- SimpleAttributeTwo.php
- SimpleClass.php
- SimpleClassFive.php
- SimpleClassFour.php
- SimpleClassSix.php
- SimpleClassThree.php
- SimpleClassTwo.php
- SimpleEnum.php
- SimpleException.php
- SimpleExceptionTwo.php
- SimpleFinalClass.php
- SimpleInterface.php
- SimpleInterfaceTwo.php
- SimpleTrait.php
- SimpleTraitTwo.php
- ClassExtendingStandardClass.php
- ClassImplementing.php
- ClassInvokable.php
- ClassWithConstant.php
- ClassWithConstantTwo.php
- ClassWithInstanceof.php
- ClassWithMultiplePublicMethods.php
- ClassWithMultiplePublicMethodsNoneMatching.php
- ClassWithNoPublicMethods.php
- ClassWithOnePublicMethod.php
- ClassWithOnlyOnePublicMethodNamed.php
- ClassWithStandardClasses.php
- ClassWithStaticMethod.php
- ClassWithStaticMethodTwo.php
- ClassWithTwoSimilarlyNamedMethods.php
- ClassWithTwoUnrelatedNamedMethods.php
- InterfaceWithTemplate.php
- FixtureClass.php
- ParsesTestsTest.php
- TestClass.php
- ShowRuleNamesTest.php
- ExistsRuleTest.php
- AbstractRuleTest.php
- IsEnumRuleTest.php
- IsFinalRuleTest.php
- IsInterfaceRuleTest.php
- IsInvokableRuleTest.php
- IsReadonlyRuleTest.php
- ClassnameRuleTest.php
- HasOnlyOnePublicMethodRuleTest.php
- HasOnlyOnePublicMethodNamedRuleTest.php
- ClassAttributeRuleTest.php
- NewRuleTest.php
- AllAttributesRuleTest.php
- CatchBlockRuleTest.php
- ClassPropertyRuleTest.php
- ConstantUseRuleTest.php
- DirectInterfacesRuleTest.php
- DocMethodTagRuleTest.php
- DocMixinTagRuleTest.php
- DocParamTagRuleTest.php
- DocPropertyTagRuleTest.php
- DocReturnTagRuleTest.php
- DocThrowsTagRuleTest.php
- DocVarTagRuleTest.php
- IncludedTraitsRuleTest.php
- InstanceofRuleTest.php
- MethodParamRuleTest.php
- MethodReturnRuleTest.php
- NewRuleTest.php
- ParentClassRuleTest.php
- StaticMethodRuleTest.php
- ParentClassRuleTest.php
- ImplementedInterfacesRuleTest.php
- IncludedTraitsRuleTest.php
- NoRegexTest.php
- WithRegexTest.php
- AllOfSelectorModifierTest.php
- AndModifierTest.php
- AnyOfSelectorModifierTest.php
- AtLeastCountOfSelectorModifierTest.php
- AtMostCountOfSelectorModifierTest.php
- NoneOfSelectorModifierTest.php
- OneOfSelectorModifierTest.php
- AllTest.php
- AppliesAttributeTest.php
- ClassExtendsTest.php
- ClassImplementsTest.php
- ClassIncludesTest.php
- ClassNamespaceTest.php
- ClassnameTest.php
- FilepathTest.php
- Fixtures.php
- IsAbstractTest.php
- IsAttributeTest.php
- IsEnumTest.php
- IsErrorTest.php
- IsExceptionTest.php
- IsFinalTest.php
- IsInterfaceTest.php
- IsNotAbstractTest.php
- IsNotFinalTest.php
- IsReadonlyTest.php
- IsStandardClassTest.php
- IsThrowableTest.php
- IsTraitTest.php
- ReadonlyFixture.php
- SelectorTestCase.php
- MultipleTipTest.php
- NoTipTest.php
- OneTipTest.php
- MultipleTipTest.php
- NoTipTest.php
- OneTipTest.php
- CreatesPhpFile.php
- FakeTestParser.php
- .gitattributes
- .gitignore
- AGENTS.md
- composer.json
- extension.neon
- helpers.php
- LICENSE
- mkdocs.yaml
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/carlosas/phpat
Downloads the entire project code from GitHub to your computer.
cd phpat
Moves into the project folder you just downloaded.
2. PHP (Composer)
Easy RecommendedPrerequisites
composer require --dev phpat/phpat
Type this command into your terminal and run it.
composer require --dev phpstan/extension-installer
Type this command into your terminal and run it.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
