Comments (3)
@corelus I'm actually using XAMPP, but the results should be the same. To use PDO with MariaDB you need to install the PHP MySQL package - on Linux this would be
sudo apt-get install php-mysql
for example
from php-rest-api.
This looks like a PHP version issue - if you're on a version prior to PHP8, you can't use constructor property promotion (adding visibility modifiers in the constructor arguments)
from php-rest-api.
Hi @daveh, great tutorial & nice work! thanks for sharing!
But could you please provide the environment requirements such as which PDO drivers are needed to get the project works. I started with this tutorial on youtube & wanted to continue the full course with Authentication & so on on Udemy, but I am kind of stuck at this point, because contrary to you in your the main tuto I'm not using MAMP, I am using docker and I'm running PHP 8 with MariaDB 10.9.3 & I've PDO Sqlite with its library SQLite Library | 3.34.1 running & I got the message -> could not find driver","file":"/var/www/html/src/Database.php","line":16
from php-rest-api.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-rest-api.