To get the code coverage Percentage you can use clover Report, which will generate xml file.
From the xml file you can read the Statements and coveredstatements which will constitute you Total percentage
Clover Report can be generated using following command:
phpunit --coverage-html ./code_Coverage_Report --coverage-clover ./cloverReport.xml codecoverage_test/CodeCoverage.php
--coverage-html: will generate the report in HTML format
./code_Coveerage_Report: will create a folder and the coverage clover report will be generate inside that folder
--coverage-clover: will generate a clover report
./cloverReport.xml: will generate an xml file for clover report
codecoverage_test/CodeCoverage.php: The file for which i need to generate coverage report