Add dependencies to recommended-ruby and optional-ruby

Add dependencies to recommended-php and optional-php