Define some constants, add php class require.