Finishing and changing the index to require on PHP