Hey there! This subreddit isn’t meant for help threads, though there’s one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out! submitted by /u/brendt_gd [link] [comments]
Motivating example (from here): public static string GetUpperText(string path) { if (!File.Exists(path)) return "DEFAULT"; var text = File.ReadAllText(path); return text.ToUpperInvariant(); } In PHP with the effect EDSL: function getUpperText(string $file, St $st) { $result = 'DEFAULT'; $st ->if(fileExists($file)) ->then(set($result, fileGetContents($file))) (); return strtoupper($result); } In PHP with a mockable class: […]
Hi I’m in my way to build web app, that had about 5 users with single admin, I’m trying to build this system the simplest way as I can, BTW the users mostly be fixed which means there is no registration and the admin do not need to create new […]
I am wondering if there are any hosting providers out there that are not VPS that offer Magento 2.4.3+ and have Elasticsearch enabled. My current hosting provider offers Magento on it’s cPanel, but I cannot “ping” the Elasticsearch service and I keep getting an “Could not validate a connection to […]
I need to programmatically create a new attribute set, via setup patch, based on another one, I do not have to use ID because it’s not fixed, only have attribute set namethank you
I am currently trying to install Magento Cloud locally using Docker on my Windows 10 Pro. The issue I am having is when I run the command: curl -sL https://github.com/magento/magento-cloud-docker/releases/download/1.2.0/init-docker.sh | bash -s — –php 7.4 It will run up until its time to install composer packages in which I […]
I want to integrate the courier guys(https://www.thecourierguy.co.za/integration/) shipping method on my Magento 2.4.3p1 website. Can any one help me with this?