Home

Awesome

📖 PHP Glossary

PHP Glossary is a conceptual and demonstrative software tool designed to analyze source code and identify domain-specific terms associated with business logic. This utility aims to distinguish domain terms from general programming language keywords, helping developers gain insights into the crucial terms that define the project's specific functionality.

Features

Installation

Composer

To install this project as a dev dependency in your existing PHP project, you can use Composer's require command with the --dev flag:

composer require --dev javanile/php-glossary

This command will add the javanile/php-glossary package as a dev dependency to your project's composer.json file and install it along with its dev dependencies.

Standalone

Download the latest release of file bin/glossary and place it in the root directory of your project.

curl -o glossary https://raw.githubusercontent.com/javanile/php-glossary/main/bin/glossary

Usage

Create a file called .glossaryrc in the root directory of your project and add the following configuration:

[domain]
terms = Invoice, Customer, Product, Order, Payment, Shipment, Tax, Discount

Run the tool from the command line:

php vendor/bin/glossary

Key Considerations

⚠️ Disclaimer ⚠️

This project is an educational demonstration and should not be used in a production environment. It showcases the idea of identifying domain-specific terms in source code and is not optimized for real-world scenarios. Use it as a starting point for understanding the potential of term analysis within software development.

Contributions

Contributions to enhance and extend the capabilities of PHP Glossary are welcome. If you find value in this concept and wish to contribute, please follow the guidelines provided in the repository.

License

This project is open-source and released under the MIT License. Feel free to use, modify, and distribute it in accordance with the license terms.