I`m trying to find the steps for installing swagger-php and Composer in Linux Centos7.
CentOS 7 is just another linux distribution, so please follow general installation steps for all unix/linux machines.
https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos
http://zircote.com/swagger-php/Getting-started.html#installation