Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread John D'Orazio
r was created in the first place, if we already have Apache and Nginx server environments? Is it not a convenient for development environments?On Nov 19, 2024 1:59 PM, Bilge wrote: On 19/11/2024 12:52, John D'Orazio wrote: My point is,

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread John D'Orazio
> Why couldn't you just do>> ```php> if (php_sapi_name() === 'cli-server') {>     $_ENV['APP_ENV'] = 'development';> }> ```>> in your entry point script?In fact this is pretty much how I currently handle the situation. Of course it can be handled in the entry point script.My point is, would the bui

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread John D'Orazio
lifies the development process. Do my two cents are simply, why not take it one more step and make an environment similar / familiar to other development environments?On Nov 19, 2024 1:12 PM, "Christoph M. Becker" wrote:On 19.11.2024 at 03:33, John D'Orazio wrote: > […] I even r

[PHP-DEV] Better development streamlining of the built-in server

2024-11-18 Thread John D'Orazio
Greetings, I have recently started using the great feature of the built-in server for local development of an API that I have created from scratch, and a frontend that can interface with the API. Having a ready server makes development so much easier for a wider community of developers, without req