It’s not a good way to store your password in the code. This is well known fact, and in multiple occasion people get hacked because they shared their code (and passwords) accidentally with others.
There are plenty of bots, just browsing github fot lost
GCE credentials. I’m going to show you, how to pass your
AWS_SECRET_ACCESS_KEY to PHP.