#psr4 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #psr4, aggregated by home.social.
-
Use StructArmed v0.7.0+ for a consistent PSR-15 naming convention, structures and contracts across your codebase with the new PSR-15 Preset.
https://github.com/boundwize/structarmed
Written by the co-maintainer of #codeigniter4, #Laminas, #Mezzio, and #RectorPHP packages: @samsonasik
https://github.com/sponsors/samsonasik
#PHP #DotKernel #SlimPHP #PSR15 #PSR12 #PSR7 #PSR4 #OpenSource
-
Use StructArmed v0.7.0+ for a consistent PSR-15 naming convention, structures and contracts across your codebase with the new PSR-15 Preset.
https://github.com/boundwize/structarmed
Written by the co-maintainer of #codeigniter4, #Laminas, #Mezzio, and #RectorPHP packages: @samsonasik
https://github.com/sponsors/samsonasik
#PHP #DotKernel #SlimPHP #PSR15 #PSR12 #PSR7 #PSR4 #OpenSource
-
Use StructArmed v0.7.0+ for a consistent PSR-15 naming convention, structures and contracts across your codebase with the new PSR-15 Preset.
https://github.com/boundwize/structarmed
Written by the co-maintainer of #codeigniter4, #Laminas, #Mezzio, and #RectorPHP packages: @samsonasik
https://github.com/sponsors/samsonasik
#PHP #DotKernel #SlimPHP #PSR15 #PSR12 #PSR7 #PSR4 #OpenSource
-
Is this #PSR4 setup wrong? It works perfectly, but #PhpStorm is unable to create test classes in the correct namespace. For a class inside "tests/Application" it will generate "namespace Application;" when I expect "namespace Acme\Tests\Application;".
{
"autoload": {
"psr-4": {
"Acme\\": "src/Acme/"
}
},
"autoload-dev": {
"psr-4": {
"Acme\\Tests\\": "tests/"
}
}
} -
Finally configured my server to correctly accommodate the functionality of my "PHP Static content management" system thing from wayback machine.
https://centrewebdesign.com/anniedebrowsa/public/index.php
So this is what it's been. The whole idea is to use the i-frame part to generate paths on your "localhost" or dev server. That's the meat and potatoes of why anyone would want to use it.
I mess w/ python stuff mostly now, so this is just an old project i wanted to "complete", also for understanding #PHP #PSR4 #Autoload
Alt Lead paragraph:
For those of you who think i'm nuts (which is most of you, i realize that), here's proof that I'm at least not a liar!i believe the two of you provided useful commentary @AceArsenault no more "Access Denied"
@aspensmonster
Cheers! -
Conventions:
What would a #Zettelkasten #ZettelkastenBoxes theorist suggest?
Maybe not the correct theory to apply...What if I read from Right to Left ( #RTL ), like many of your acquaintances at least have considered.
Perhaps is more efficient in this circumstance to use an #RTL approach to an #LTR problem?
#PSR #autoload #PSR4 -
Conventions:
What would a #Zettelkasten #ZettelkastenBoxes theorist suggest?
Maybe not the correct theory to apply...What if I read from Right to Left ( #RTL ), like many of your acquaintances at least have considered.
Perhaps is more efficient in this circumstance to use an #RTL approach to an #LTR problem?
#PSR #autoload #PSR4 -
Conventions:
What would a #Zettelkasten #ZettelkastenBoxes theorist suggest?
Maybe not the correct theory to apply...What if I read from Right to Left ( #RTL ), like many of your acquaintances at least have considered.
Perhaps is more efficient in this circumstance to use an #RTL approach to an #LTR problem?
#PSR #autoload #PSR4 -
Conventions:
What would a #Zettelkasten #ZettelkastenBoxes theorist suggest?
Maybe not the correct theory to apply...What if I read from Right to Left ( #RTL ), like many of your acquaintances at least have considered.
Perhaps is more efficient in this circumstance to use an #RTL approach to an #LTR problem?
#PSR #autoload #PSR4 -
executed "composer dump-autoload", so the #PSR4 auotoload magic should be in place now
see: https://www.php-fig.org/psr/psr-4/
"PHP Coding Standards"PSR = Standard Rec (like W3c? )
Believe it or not i do know a thing or two
:Dhttps://wordpresscenter.net/semantic-markup-and-html/#context-related-list
#WordPress @photomatt doesn't subscribe to #PSR standards ⁂ why use it?
-
Believe it or not, ths is actually an improvement!
https://giterator.statecollegeguitarlessons.com/
Note, i simply made the subdomain which reminded me how to do it on this type of system. maybe? @zombiewarrior
realizing, it has been-- literally-- painful to do intense research stuff.Note: there is no ./public/ in the URL now. This helps with confidence in configuring the "Composer.json" stuff, so the #PHP #PSR4 #Autoloader will function as desired after #composer #dumpautoload (which i've yet to exectute! [ 10:42 EST ]
at least now, i can fix it, and know it will "work" on any system. basically. PHP 7+ at least. LOL
:(
-
Believe it or not, ths is actually an improvement!
https://giterator.statecollegeguitarlessons.com/
Note, i simply made the subdomain which reminded me how to do it on this type of system. maybe? @zombiewarrior
realizing, it has been-- literally-- painful to do intense research stuff.Note: there is no ./public/ in the URL now. This helps with confidence in configuring the "Composer.json" stuff, so the #PHP #PSR4 #Autoloader will function as desired after #composer #dumpautoload (which i've yet to exectute! [ 10:42 EST ]
at least now, i can fix it, and know it will "work" on any system. basically. PHP 7+ at least. LOL
:(
-
Believe it or not, ths is actually an improvement!
https://giterator.statecollegeguitarlessons.com/
Note, i simply made the subdomain which reminded me how to do it on this type of system. maybe? @zombiewarrior
realizing, it has been-- literally-- painful to do intense research stuff.Note: there is no ./public/ in the URL now. This helps with confidence in configuring the "Composer.json" stuff, so the #PHP #PSR4 #Autoloader will function as desired after #composer #dumpautoload (which i've yet to exectute! [ 10:42 EST ]
at least now, i can fix it, and know it will "work" on any system. basically. PHP 7+ at least. LOL
:(
-
Believe it or not, ths is actually an improvement!
https://giterator.statecollegeguitarlessons.com/
Note, i simply made the subdomain which reminded me how to do it on this type of system. maybe? @zombiewarrior
realizing, it has been-- literally-- painful to do intense research stuff.Note: there is no ./public/ in the URL now. This helps with confidence in configuring the "Composer.json" stuff, so the #PHP #PSR4 #Autoloader will function as desired after #composer #dumpautoload (which i've yet to exectute! [ 10:42 EST ]
at least now, i can fix it, and know it will "work" on any system. basically. PHP 7+ at least. LOL
:(
-
In all honesty though, #Mastofriends
I'd better gets me a #JobbyJob !!So, yeah. want to put that old #php #refactored #PSR4 thing as a "showcase" #CV type item for this round of Indeed BS.
yea. you know the routine.
my project: it's cr@p still.
:(bha hum bug!
@zombiewarrior -
In all honesty though, #Mastofriends
I'd better gets me a #JobbyJob !!So, yeah. want to put that old #php #refactored #PSR4 thing as a "showcase" #CV type item for this round of Indeed BS.
yea. you know the routine.
my project: it's cr@p still.
:(bha hum bug!
@zombiewarrior -
In all honesty though, #Mastofriends
I'd better gets me a #JobbyJob !!So, yeah. want to put that old #php #refactored #PSR4 thing as a "showcase" #CV type item for this round of Indeed BS.
yea. you know the routine.
my project: it's cr@p still.
:(bha hum bug!
@zombiewarrior -
In all honesty though, #Mastofriends
I'd better gets me a #JobbyJob !!So, yeah. want to put that old #php #refactored #PSR4 thing as a "showcase" #CV type item for this round of Indeed BS.
yea. you know the routine.
my project: it's cr@p still.
:(bha hum bug!
@zombiewarrior -
In all honesty though, #Mastofriends
I'd better gets me a #JobbyJob !!So, yeah. want to put that old #php #refactored #PSR4 thing as a "showcase" #CV type item for this round of Indeed BS.
yea. you know the routine.
my project: it's cr@p still.
:(bha hum bug!
@zombiewarrior -
hmph. well? that's unexpected!
-
This is where I am w/ the github repo @zombiewarrior
It's really close to being "right", so to speak.
compare that to e.g.
http://statecollegeguitarlessons.com/adb/index.phpNote: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
(sans the ./public part). you see the same thing either way. pet peeves.EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
this is NOT correct! http://statecollegeguitarlessons.com/giterator/public/index.phpfirst time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.
i must admit, it was more challenging that i expected.
but yea. feel free to hop in there at any time, and help me polish that old turd already!
Sheesh! -
This is where I am w/ the github repo @zombiewarrior
It's really close to being "right", so to speak.
compare that to e.g.
http://statecollegeguitarlessons.com/adb/index.phpNote: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
(sans the ./public part). you see the same thing either way. pet peeves.EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
this is NOT correct! http://statecollegeguitarlessons.com/giterator/public/index.phpfirst time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.
i must admit, it was more challenging that i expected.
but yea. feel free to hop in there at any time, and help me polish that old turd already!
Sheesh! -
This is where I am w/ the github repo @zombiewarrior
It's really close to being "right", so to speak.
compare that to e.g.
http://statecollegeguitarlessons.com/adb/index.phpNote: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
(sans the ./public part). you see the same thing either way. pet peeves.EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
this is NOT correct! http://statecollegeguitarlessons.com/giterator/public/index.phpfirst time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.
i must admit, it was more challenging that i expected.
but yea. feel free to hop in there at any time, and help me polish that old turd already!
Sheesh! -
This is where I am w/ the github repo @zombiewarrior
It's really close to being "right", so to speak.
compare that to e.g.
http://statecollegeguitarlessons.com/adb/index.phpNote: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
(sans the ./public part). you see the same thing either way. pet peeves.EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
this is NOT correct! http://statecollegeguitarlessons.com/giterator/public/index.phpfirst time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.
i must admit, it was more challenging that i expected.
but yea. feel free to hop in there at any time, and help me polish that old turd already!
Sheesh! -
This is where I am w/ the github repo @zombiewarrior
It's really close to being "right", so to speak.
compare that to e.g.
http://statecollegeguitarlessons.com/adb/index.phpNote: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
(sans the ./public part). you see the same thing either way. pet peeves.EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
this is NOT correct! http://statecollegeguitarlessons.com/giterator/public/index.phpfirst time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.
i must admit, it was more challenging that i expected.
but yea. feel free to hop in there at any time, and help me polish that old turd already!
Sheesh!