mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 05:57:26 +02:00
2
LICENSE
2
LICENSE
@@ -1,3 +1,3 @@
|
|||||||
Copyright (c) 2013 Josh Lockhart
|
Copyright (c) 2013 Josh Lockhart
|
||||||
|
|
||||||
http://creativecommons.org/licenses/by-nc-sa/3.0/
|
https://creativecommons.org/licenses/by-nc-sa/3.0/
|
||||||
|
@@ -14,6 +14,6 @@ For each team, CMS, or framework one works in, a standard directory structure is
|
|||||||
|
|
||||||
[Paul M. Jones] has done some fantastic research into common practices of tens of thousands of github projects in the realm of PHP. He has compiled a standard file and directory structure, the [Standard PHP Package Skeleton], based on this research. In this directory structure, `DocumentRoot` should point to `public/`, unit tests should be in the `tests/` directory, and third party libraries, as installed by [composer], belong in the `vendor/` directory. For other files and directories, abiding by the [Standard PHP Package Skeleton] will make the most sense to contributors of a project.
|
[Paul M. Jones] has done some fantastic research into common practices of tens of thousands of github projects in the realm of PHP. He has compiled a standard file and directory structure, the [Standard PHP Package Skeleton], based on this research. In this directory structure, `DocumentRoot` should point to `public/`, unit tests should be in the `tests/` directory, and third party libraries, as installed by [composer], belong in the `vendor/` directory. For other files and directories, abiding by the [Standard PHP Package Skeleton] will make the most sense to contributors of a project.
|
||||||
|
|
||||||
[Paul M. Jones]: http://paul-m-jones.com/
|
[Paul M. Jones]: https://paul-m-jones.com/
|
||||||
[Standard PHP Package Skeleton]: https://github.com/php-pds/skeleton
|
[Standard PHP Package Skeleton]: https://github.com/php-pds/skeleton
|
||||||
[Composer]: /#composer_and_packagist
|
[Composer]: /#composer_and_packagist
|
||||||
|
@@ -403,7 +403,7 @@ After including those new rules in the `.po` file, a new scan will bring in your
|
|||||||
[poedit_download]: https://poedit.net/download
|
[poedit_download]: https://poedit.net/download
|
||||||
[lingohub]: https://lingohub.com/blog/2013/07/php-internationalization-with-gettext-tutorial/
|
[lingohub]: https://lingohub.com/blog/2013/07/php-internationalization-with-gettext-tutorial/
|
||||||
[lingohub_plurals]: https://lingohub.com/blog/2013/07/php-internationalization-with-gettext-tutorial/#Plurals
|
[lingohub_plurals]: https://lingohub.com/blog/2013/07/php-internationalization-with-gettext-tutorial/#Plurals
|
||||||
[plural]: http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
|
[plural]: https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
|
||||||
[gettext]: https://en.wikipedia.org/wiki/Gettext
|
[gettext]: https://en.wikipedia.org/wiki/Gettext
|
||||||
[manual]: https://www.gnu.org/software/gettext/manual/gettext.html
|
[manual]: https://www.gnu.org/software/gettext/manual/gettext.html
|
||||||
[639-1]: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
[639-1]: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
||||||
|
@@ -28,7 +28,7 @@ installed in any application you like:
|
|||||||
[4]: https://packages.zendframework.com/docs/latest/manual/en/index.html#zendframework/zend-db
|
[4]: https://packages.zendframework.com/docs/latest/manual/en/index.html#zendframework/zend-db
|
||||||
[5]: https://atlasphp.io
|
[5]: https://atlasphp.io
|
||||||
[6]: https://github.com/auraphp/Aura.Sql
|
[6]: https://github.com/auraphp/Aura.Sql
|
||||||
[7]: http://propelorm.org/
|
[7]: https://propelorm.org/
|
||||||
[8]: https://medoo.in/
|
[8]: https://medoo.in/
|
||||||
[psr0]: https://www.php-fig.org/psr/psr-0/
|
[psr0]: https://www.php-fig.org/psr/psr-0/
|
||||||
[psr4]: https://www.php-fig.org/psr/psr-4/
|
[psr4]: https://www.php-fig.org/psr/psr-4/
|
||||||
|
@@ -62,5 +62,5 @@ Using the [Plates][plates] library.
|
|||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
||||||
[plates]: http://platesphp.com/
|
[plates]: https://platesphp.com/
|
||||||
[aura]: https://github.com/auraphp/Aura.View
|
[aura]: https://github.com/auraphp/Aura.View
|
||||||
|
@@ -23,7 +23,7 @@ anchor: templating_further_reading
|
|||||||
* [Latte](https://github.com/nette/latte) *(compiled)*
|
* [Latte](https://github.com/nette/latte) *(compiled)*
|
||||||
* [Mustache](https://github.com/bobthecow/mustache.php) *(compiled)*
|
* [Mustache](https://github.com/bobthecow/mustache.php) *(compiled)*
|
||||||
* [PHPTAL](https://phptal.org/) *(compiled)*
|
* [PHPTAL](https://phptal.org/) *(compiled)*
|
||||||
* [Plates](http://platesphp.com/) *(native)*
|
* [Plates](https://platesphp.com/) *(native)*
|
||||||
* [Smarty](https://www.smarty.net/) *(compiled)*
|
* [Smarty](https://www.smarty.net/) *(compiled)*
|
||||||
* [Twig](https://twig.symfony.com/) *(compiled)*
|
* [Twig](https://twig.symfony.com/) *(compiled)*
|
||||||
* [Zend-View](https://docs.zendframework.com/zend-view/) *(native, framework specific)*
|
* [Zend-View](https://docs.zendframework.com/zend-view/) *(native, framework specific)*
|
||||||
|
@@ -28,4 +28,4 @@ it can be used to deploy to cloud services as well. The provisioning is made wit
|
|||||||
[Puppet]: https://puppet.com/
|
[Puppet]: https://puppet.com/
|
||||||
[Chef]: https://www.chef.io/
|
[Chef]: https://www.chef.io/
|
||||||
[Puphpet]: https://github.com/puphpet/puphpet
|
[Puphpet]: https://github.com/puphpet/puphpet
|
||||||
[Phansible]: http://phansible.com/
|
[Phansible]: https://phansible.com/
|
||||||
|
@@ -15,7 +15,7 @@ Below is an example of how you might document a class with a few methods;
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @author A Name <a.name@example.com>
|
* @author A Name <a.name@example.com>
|
||||||
* @link http://www.phpdoc.org/docs/latest/index.html
|
* @link https://www.phpdoc.org/docs/latest/index.html
|
||||||
*/
|
*/
|
||||||
class DateTimeHelper
|
class DateTimeHelper
|
||||||
{
|
{
|
||||||
|
@@ -44,7 +44,7 @@ components best decoupled from the Laravel framework are listed above._
|
|||||||
[PEAR]: /#pear
|
[PEAR]: /#pear
|
||||||
[Dependency Management]: /#dependency_management
|
[Dependency Management]: /#dependency_management
|
||||||
[FuelPHP Validation package]: https://github.com/fuelphp/validation
|
[FuelPHP Validation package]: https://github.com/fuelphp/validation
|
||||||
[Aura]: http://auraphp.com/framework/
|
[Aura]: https://auraphp.com/framework/
|
||||||
[FuelPHP]: https://github.com/fuelphp
|
[FuelPHP]: https://github.com/fuelphp
|
||||||
[Hoa Project]: https://github.com/hoaproject
|
[Hoa Project]: https://github.com/hoaproject
|
||||||
[Symfony Components]: https://symfony.com/components
|
[Symfony Components]: https://symfony.com/components
|
||||||
|
@@ -12,7 +12,7 @@ book to be added, send a PR and it will be reviewed for relevancy.
|
|||||||
|
|
||||||
### Free Books
|
### Free Books
|
||||||
|
|
||||||
* [PHP Pandas](http://daylerees.com/php-pandas/) - Aims to teach everyone how to be a web developer.
|
* [PHP Pandas](https://daylerees.com/php-pandas/) - Aims to teach everyone how to be a web developer.
|
||||||
* [PHP The Right Way](https://leanpub.com/phptherightway/) - This website is available as a book completely for free.
|
* [PHP The Right Way](https://leanpub.com/phptherightway/) - This website is available as a book completely for free.
|
||||||
* [Using Libsodium in PHP Projects](https://paragonie.com/book/pecl-libsodium) - Guide to using Libsodium PHP extension
|
* [Using Libsodium in PHP Projects](https://paragonie.com/book/pecl-libsodium) - Guide to using Libsodium PHP extension
|
||||||
for modern, secure, and fast cryptography.
|
for modern, secure, and fast cryptography.
|
||||||
@@ -28,7 +28,7 @@ developer usually acquires over years of experience, all condensed down into one
|
|||||||
small, specific steps
|
small, specific steps
|
||||||
* [Securing PHP: Core Concepts](https://leanpub.com/securingphp-coreconcepts) - A guide to some of the most common
|
* [Securing PHP: Core Concepts](https://leanpub.com/securingphp-coreconcepts) - A guide to some of the most common
|
||||||
security terms and provides some examples of them in every day PHP
|
security terms and provides some examples of them in every day PHP
|
||||||
* [Scaling PHP](http://www.scalingphpbook.com/) - Stop playing sysadmin and get back to coding
|
* [Scaling PHP](https://www.scalingphpbook.com/) - Stop playing sysadmin and get back to coding
|
||||||
* [Signaling PHP](https://leanpub.com/signalingphp) - PCNLT signals are a great help when writing PHP scripts that
|
* [Signaling PHP](https://leanpub.com/signalingphp) - PCNLT signals are a great help when writing PHP scripts that
|
||||||
run from the command line.
|
run from the command line.
|
||||||
* [Minimum Viable Tests](https://leanpub.com/minimumviabletests) - Long-time PHP testing evangelist Chris Hartjes goes over what he feels is the minimum you need to know to get started.
|
* [Minimum Viable Tests](https://leanpub.com/minimumviabletests) - Long-time PHP testing evangelist Chris Hartjes goes over what he feels is the minimum you need to know to get started.
|
||||||
|
32
banners.md
32
banners.md
@@ -14,8 +14,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/btn1-120x90.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/btn1-120x90.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/btn1-120x90.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/btn1-120x90.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -24,8 +24,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/btn2-120x60.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/btn2-120x60.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/btn2-120x60.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/btn2-120x60.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -34,8 +34,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/leaderboard-728x90.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/leaderboard-728x90.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/leaderboard-728x90.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/leaderboard-728x90.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -44,8 +44,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/lg-rect-386x280.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/lg-rect-386x280.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/lg-rect-386x280.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/lg-rect-386x280.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -54,8 +54,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/med-rect-300x250.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/med-rect-300x250.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/med-rect-300x250.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/med-rect-300x250.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -64,8 +64,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/rect-180x150.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/rect-180x150.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/rect-180x150.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/rect-180x150.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -74,8 +74,8 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/sq-btn-125x125.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/sq-btn-125x125.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/sq-btn-125x125.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/sq-btn-125x125.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ Spread the word with _PHP: The Right Way_ banner images! Show new PHP developers
|
|||||||
<p><img src="/images/banners/vert-rect-240x400.png" alt="PHP: The Right Way"/></p>
|
<p><img src="/images/banners/vert-rect-240x400.png" alt="PHP: The Right Way"/></p>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="http://www.phptherightway.com">
|
<a href="https://www.phptherightway.com">
|
||||||
<img src="http://www.phptherightway.com/images/banners/vert-rect-240x400.png" alt="PHP: The Right Way"/>
|
<img src="https://www.phptherightway.com/images/banners/vert-rect-240x400.png" alt="PHP: The Right Way"/>
|
||||||
</a>
|
</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
Reference in New Issue
Block a user