Tutorial-First-Application
php-docker
Tutorial-First-Application | php-docker | |
---|---|---|
12 | 76 | |
125 | 3,732 | |
0.0% | 1.2% | |
0.0 | 8.7 | |
over 1 year ago | 10 days ago | |
PHP | Shell | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Tutorial-First-Application
-
Weekly help thread
b) Separate out all SQL and PHP database code. Put these in separate classes similar to this example Slim First Application Mapper class. You can decide later if you want to use a framework's DB code or not - it would be simply refactoring your existing code and not changing (hopefully) the API that you started using internally
- Any good no framework PHP MYSQL web app in github, I can learn from?
- Simplest PHP template ever. Password hashed PDO register and login. Just add Postgres DB info in .ini file or change the Singleton class for MySQL. User table should have "username" and "password" fields. Plus whatever else you want. simple_dom_html.php library included. PHP 7.4+
-
Is a framework necessary to create a PHP project?
Yes, as an example, the First Application's business logic (not that it's much) doesn't tie itself to the framework, as one example. Odan's Slim Skeleton, ADR Example (yes, I know you are the author), and the Aura Payload example class can be seen as other examples.
-
Do I need Laravel for an HTTP API project? If so, why?
Both. Build business logic with PHP, then use a framework for the common functionality (routing, auth, validation, etc). Look at Slim's First Application to show a very simple example of this - https://github.com/slimphp/Tutorial-First-Application
- How to move up to PHP 8 and Object Orientation?
- advice for modernizing a legacy web app
-
I'm new to PHP OOP and looking for feedback on my proposed OOP design structure before I dive in a start coding it. Thanks!
Another option, to me and speaking to the OP as an alternative, it is simpler to add some Data Mappers/Repositories to abstract away the Database code. Good examples is the sample ADR application, Payload library example, Slim 3 First Application, or this Slim 4 Skeleton application
-
Storing DB credentials
Yes, you can. Did you look at the example I provided? Want another one? Slim Framework's first application does exactly this:
-
Help with making my MVC "Framework"
https://github.com/slimphp/Tutorial-First-Application <- Uses the Slim framework
php-docker
-
An Internet of PHP
Yes, the apache[0] image will do what you want
[0] https://github.com/docker-library/php/blob/1c4b255f3e5ab610c...
-
Using named arguments in php8 and up
That's the first I've heard of it, and I like it! I can't tell you the number of trips to php.net to look at argument order for a function. Is it haystack/needle, or needle/haystack? Of course it could turn into the same thing w/ argument names (is it whole_name or full_name?), but I'm going to use it.
-
How to display results from multiple SQL queries in the same table cell?
Prepare to spend a fair bit of time reading and going back to phptherightway.com and php.net. I've also found this Tutorial from Envato Tuts+ to be quite good.
-
Beginner searching for set up resources
All I want to do with php is to have a recurring navbar on a website. I don't know what to do next. So far I've tried php.net's manual, w3scchool's tutorial and the set up part of first five recommended php tutorials on youtube. I have also spent hours on stackoverflow, which got me even more confused. The more I read, the less nothing makes sense to me and I don't know where the problem is.
-
date_format crashing on NULL values after upgrade to PHP 8.x
I tried looking at the upgrade from 7.4 to 8.0 docs on php.net but I don't see anything regarding any changes to this function. Any ideas?
-
Myra & php.net
Does anyone else have trouble getting into php.net without some human verification page popping up first?
-
php.net down??
I've gone to php.net probably thousands of times over 15 years and have never seen this. If I saw it, like this user did, I'd be curious.
-
How can I prevent my PHP file from being downloaded?
I would but cannot access php.net because of blue hardware
-
Are there any plans on making PHP 8 a normal apt repository?
Not necessarily, a docker image can build from source. In fact, the official PHP docker image is built from source. See https://github.com/docker-library/php/blob/master/8.2/alpine3.18/cli/Dockerfile
-
Hey guys! So I've been working with Java for a while now, but I've been offered a job with a PHP project. I don't have any experience with PHP, but I'm excited to learn. Do you have any tips or resources for someone making the switch? Thanks in advance!
. php.net is the official documentation
What are some alternatives?
React - Event-driven, non-blocking I/O with PHP.
homebrew-php - :beer: Homebrew tap for PHP 5.6 to 8.4. PHP 8.4 is built nightly.
PHP Dotenv - Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
s6-overlay - s6 overlay for containers (includes execline, s6-linux-utils & a custom init)
slim4-skeleton - A Slim 4 Skeleton
docker-php-nginx - Docker image with PHP-FPM 8.3 & Nginx 1.24 on Alpine Linux
php-app - Barebones PHP app with PDO Singleton setup for Postgres. Register, Login, Index page. Simple cache and simple_html_dom library included. Add your own DB info.
laravel-docker-production
phroute - A super fast PHP router, with route parameters, restful controllers, filters and reverse routing.
react-pdf - 📄 Create PDF files using React
phpframework - Example DIY PHP Framework
docker-php - 🐳 Production-ready Docker images for PHP. Optimized for Laravel, WordPress, and more!