Add toPutenv that calls putenv() to set env vars.

Add a `toPutenv()` method which uses's php's `putenv()` to set variables. Resolves #7.