home.social

#psr4 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #psr4, aggregated by home.social.

  1. Use StructArmed v0.7.0+ for a consistent PSR-15 naming convention, structures and contracts across your codebase with the new PSR-15 Preset.

    github.com/boundwize/structarm

    Written by the co-maintainer of #codeigniter4, #Laminas, #Mezzio, and #RectorPHP packages: @samsonasik

    github.com/sponsors/samsonasik

    #PHP #DotKernel #SlimPHP #PSR15 #PSR12 #PSR7 #PSR4 #OpenSource

  2. Use StructArmed v0.7.0+ for a consistent PSR-15 naming convention, structures and contracts across your codebase with the new PSR-15 Preset.

    github.com/boundwize/structarm

    Written by the co-maintainer of #codeigniter4, #Laminas, #Mezzio, and #RectorPHP packages: @samsonasik

    github.com/sponsors/samsonasik

    #PHP #DotKernel #SlimPHP #PSR15 #PSR12 #PSR7 #PSR4 #OpenSource

  3. Use StructArmed v0.7.0+ for a consistent PSR-15 naming convention, structures and contracts across your codebase with the new PSR-15 Preset.

    github.com/boundwize/structarm

    Written by the co-maintainer of #codeigniter4, #Laminas, #Mezzio, and #RectorPHP packages: @samsonasik

    github.com/sponsors/samsonasik

    #PHP #DotKernel #SlimPHP #PSR15 #PSR12 #PSR7 #PSR4 #OpenSource

  4. 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/"
    }
    }
    }

    #php

  5. Finally configured my server to correctly accommodate the functionality of my "PHP Static content management" system thing from wayback machine.

    centrewebdesign.com/anniedebro

    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!

  6. 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

  7. 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

  8. 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

  9. 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

  10. @zombiewarrior

    executed "composer dump-autoload", so the #PSR4 auotoload magic should be in place now

    see: 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
    :D

    wordpresscenter.net/semantic-m

    #WordPress @photomatt doesn't subscribe to #PSR standards ⁂ why use it?

  11. Believe it or not, ths is actually an improvement!

    giterator.statecollegeguitarle

    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

    :(

    #HEADLESSCMS #headless #LOL

  12. Believe it or not, ths is actually an improvement!

    giterator.statecollegeguitarle

    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

    :(

    #HEADLESSCMS #headless #LOL

  13. Believe it or not, ths is actually an improvement!

    giterator.statecollegeguitarle

    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

    :(

    #HEADLESSCMS #headless #LOL

  14. Believe it or not, ths is actually an improvement!

    giterator.statecollegeguitarle

    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

    :(

    #HEADLESSCMS #headless #LOL

  15. 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

  16. 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

  17. 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

  18. 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

  19. 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

  20. 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.
    statecollegeguitarlessons.com/

    Note: 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! statecollegeguitarlessons.com/

    first 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!

  21. 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.
    statecollegeguitarlessons.com/

    Note: 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! statecollegeguitarlessons.com/

    first 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!

  22. 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.
    statecollegeguitarlessons.com/

    Note: 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! statecollegeguitarlessons.com/

    first 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!

  23. 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.
    statecollegeguitarlessons.com/

    Note: 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! statecollegeguitarlessons.com/

    first 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!

  24. 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.
    statecollegeguitarlessons.com/

    Note: 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! statecollegeguitarlessons.com/

    first 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!