issei-m / scm-revision-number-retriever
Retrieves the current revision number which project now refers to.
Installs: 3 270
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is auto-updated.
Last update: 2024-11-05 08:52:31 UTC
README
This library just reads specified file content and returns it.
If you use Capistrano 3 to deploy app, The REVISION
file is located to your application's root directory.
This means it might help you to see the current revision which project now refers to like this:
$retriever = new \Issei\ScmRevisionNumberRetriever('/path/to/your-project/REVISION'); var_dump($retriever->getCurrentRevisionNumber()); // content of "/path/to/your-project/REVISION"