LostKobrakai Posted May 10, 2016 Share Posted May 10, 2016 I've just added a pull request for a ProcessWire driver to laravel valet: https://github.com/laravel/valet/pull/55/files For anyone wanting to have a quick local dev environment (on a mac) you should certainly take a look. https://laravel.com/docs/master/valet 13 Link to comment Share on other sites More sharing options...
Sergio Posted May 10, 2016 Share Posted May 10, 2016 Cool! I was thinking about it yesterday. Thanks! Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 14, 2016 Author Share Posted May 14, 2016 Just to add that here. The driver can be installed manually until and if the pr does get merged into valet. Just put the ProcessWireValetDriver.php of the pr into the ~/.valet/Drivers folder and start your ProcessWire project. 3 Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 31, 2016 Author Share Posted May 31, 2016 Here's a nice (laravel centric) overview about what valet is and how to get it running: https://laracasts.com/lessons/laravel-valet-is-the-bomb 2 Link to comment Share on other sites More sharing options...
fuzendesign Posted July 8, 2016 Share Posted July 8, 2016 Thanks man! Exactly what I needed. Link to comment Share on other sites More sharing options...
clsource Posted July 10, 2016 Share Posted July 10, 2016 This is a really good tool. Thanks for creating a PW driver Link to comment Share on other sites More sharing options...
Rudy Posted October 7, 2016 Share Posted October 7, 2016 If for some reason, @LostKobrakai driver doesn't work for you, try this version https://github.com/lesaff/ProcessWireValetDriver Link to comment Share on other sites More sharing options...
Rudy Posted October 7, 2016 Share Posted October 7, 2016 I can safely confirm that PW on Valet is faster than PW on MAMP/MAMP Pro. Link to comment Share on other sites More sharing options...
pwired Posted October 8, 2016 Share Posted October 8, 2016 For Windows users there is the Laragon version: https://laragon.org/download.html 3 Link to comment Share on other sites More sharing options...
bernhard Posted October 10, 2016 Share Posted October 10, 2016 thank you @pwired do you have processwire running on laragon? what are the steps necessary to do? thank you 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted October 15, 2016 Author Share Posted October 15, 2016 @Rudy I did take a look at your take at it and the subfolder option didn't seem to work. I've now enhanced it to be configurable to different optional subfolders to look for a ProcessWire installation. I've also taken the trailingSlash part out, because ProcessWire does not enforce trailing slashes, but it can do it on it's own if you want it to. https://gist.github.com/LostKobrakai/5328d6f64e9dc06a8776d0231c6628c6 2 Link to comment Share on other sites More sharing options...
Rudy Posted October 15, 2016 Share Posted October 15, 2016 @LostKobrakai This is great! I just tested it and it works nicely. I love PW community. Keep it up folks! Link to comment Share on other sites More sharing options...
bernhard Posted October 21, 2016 Share Posted October 21, 2016 to make file uploads work i had to make those adjustments on my laragon + win10: // php.ini (right click on laragon tray > php > php.ini date.timezone = Europe/Vienna // uncomment and set always_populate_raw_post_data = -1 // uncomment don't forget to reload laragon awesome tool so far, thanks for sharing @LostKobrakai and @pwired 1 Link to comment Share on other sites More sharing options...
Rudy Posted November 16, 2016 Share Posted November 16, 2016 @LostKobrakai, when you have a chance, could you test this on your Valet/PW install. do a var_dump(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); and visit a page that has dash in the segment name. on my PW install: Original URL: http://my.dev/this-and-that/ The var_dump output is "-that" I ran the same test on my MAMP Pro and Ubuntu server and both comes out as "this-and-that" Not sure if it's isolated to my Valet or not. Thanks Rudy Link to comment Share on other sites More sharing options...
owzim Posted November 16, 2016 Share Posted November 16, 2016 Never heard of valet, looks great. Have to try it out later. How can PW run in valet, when there's no apache? Link to comment Share on other sites More sharing options...
Rudy Posted November 16, 2016 Share Posted November 16, 2016 Valet runs on Caddy HTTP server. It's pretty fast. By default, it installs Caddy and PHP 7. You will need to install MariaDb or MySQL and use PW Driver to run PW on it. Link to comment Share on other sites More sharing options...
LostKobrakai Posted November 17, 2016 Author Share Posted November 17, 2016 The valet driver basically replaces what the .htaccess does. Link to comment Share on other sites More sharing options...
pwired Posted January 15, 2017 Share Posted January 15, 2017 Hi, I am using Laragon (laravel for mac) on Windows but can not solve the mod_rewrite error when installing Processwire 2.7 I searched with Google but could only find some tips about php.ini and nginx.conf but didnt make the mod_rewrite error go away. I tried to look inside the list with php extensions to see if it has to be enabled there like with wamp but it seems not to be there in the list. What needs to be done here ? Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 15, 2017 Author Share Posted January 15, 2017 mod_rewrite is a part of apache, so there's nothing to detect when this is using nginx. But you can still complete the installation with that error. Just make sure rewrites are correctly set up in nginx as well. 1 Link to comment Share on other sites More sharing options...
pwired Posted January 15, 2017 Share Posted January 15, 2017 Thanks for your reply LostKobraKai. Ok I clicked on Continue and could finish the installation. So I only have to setup rewrites when I need them. I will be good then for the time being. How to create nginx rewrite rules must be easy to find with Google. I assume I have to put them in nginx.conf Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 16, 2017 Author Share Posted January 16, 2017 There is a nginx.conf somewhere here in the forums. Just search for it on google. 1 Link to comment Share on other sites More sharing options...
Michael Murphy Posted April 21, 2017 Share Posted April 21, 2017 Just wanted to say thanks for creating the Valet driver - it works well with the latest master and dev branches of PW. It is noticeably faster than MAMP, not to mention much easier to setup - just create a new folder and off you go. Also the ease of setting up SSL for local testing is very unique. I've not used it extensively but this feels like the best local development setup I have tried so far (for performance and ease of setup). Interested to hear if anyone has had any issues using Valet for PW development. I am also very impressed by homebrew - it has come a long way since my earlier tests and seems to be very solid since turning 1.0 with lots of additional help to make sure you don't mess anything up. 1 Link to comment Share on other sites More sharing options...
Sergio Posted June 6, 2017 Share Posted June 6, 2017 On 10/15/2016 at 8:29 AM, LostKobrakai said: @Rudy I did take a look at your take at it and the subfolder option didn't seem to work. I've now enhanced it to be configurable to different optional subfolders to look for a ProcessWire installation. I've also taken the trailingSlash part out, because ProcessWire does not enforce trailing slashes, but it can do it on it's own if you want it to. https://gist.github.com/LostKobrakai/5328d6f64e9dc06a8776d0231c6628c6 I confirm that this version is working on Windows 10, using https://github.com/cretueusebiu/valet-windows If yours doesn't work, maybe enabling developer mode on Windows is required. Thanks @LostKobrakai ! Link to comment Share on other sites More sharing options...
daniels Posted August 29, 2018 Share Posted August 29, 2018 @LostKobrakai thank you so much for your great driver, I use and love it for quite a while now. I just experienced something weird, and I'm not sure if it has to do something with valet and your driver: I'm in the need of accessing a non-processwire php file in the processwire root (e.g. domain.test/myfile.php). On my staging & live server, this works great – on my local dev environment (including valet and your driver), I land on the 404 processwire page. I tried a few things: On Staging (with valet): domain.test/myimage.png -> ✔️ domain.test/custom/myimage.png -> ✔️ domain.test/myfile.php -> ❌ domain.test/custom/myfile.php -> ❌ On Live Server (apache): domain.com/myimage.png -> ✔️ domain.com/custom/myimage.png -> ✔️ domain.com/myfile.php -> ✔️ domain.com/custom/myfile.php -> ✔️ Is it possible that it has something to do with valet and the driver? Or could there be other reasons? Best, Daniel Link to comment Share on other sites More sharing options...
dragan Posted August 30, 2018 Share Posted August 30, 2018 You probably have to change something in your .htaccess file (mod_rewrite). A workaround would be to simply use an empty new template and include() your custom PHP file, then use the PW-generated URL / page-slug to access it. Link to comment Share on other sites More sharing options...
Recommended Posts