Looking for more information on how to do PHP the right way? Check out PHP: The Right Way


murze.be:
How to integrate Elasticsearch in your Laravel App
Sep 12, 2019 @ 15:30:01

Tony Messias wrote a good post on the Madewithlove blog on how to get started using Elastichsearch in a Laravel app.

One of the most popular ways is using Elasticsearch. It is a very powerful tool and it comes with a variety of useful features and complementary tools. We are going to cover the ba...

tagged:

Link: https://freek.dev/1447-how-to-integrate-elasticsearch-in-your-laravel-app

Derick Rethans:
PHP Internals News: Episode 27: Argument Information
Sep 12, 2019 @ 13:30:02

  PHP Internals News: Episode 27: Argument Information 
   
     London, UK 
    Thursday, September 12th 2019, 09:27 BST 
   
  In this episode of "PHP Internals News" I chat with Nikita Popov (Twitter, GitHub) about adding information about arguments and return ...
tagged:

Link: https://derickrethans.nl/phpinternalsnews-27.html


murze.be:
Continuous Integration with GitHub Actions and Laravel 6
Sep 11, 2019 @ 10:30:02

Roberto B wrote a good tutorial on how to test your Laravel 6 application using GitHub actions.

The scenario that I would like to explain you is: I have a Web App based on Laravel 6, every time I push some new code on master branch on the GitHub repository, I would like to execute automatically U...

tagged:

Link: https://freek.dev/1449-continuous-integration-with-github-actions-and-laravel-6

Community News:
Latest PECL Releases (09.10.2019)
Sep 10, 2019 @ 08:05:02

Latest PECL Releases:

  • mongodb 1.6.0
    ** Bug

    • [PHPC-1331] - Fix typos in ReadPreference::__set_state() errors
    • [PHPC-1332] - PHP array API downcasts 64-bit integers to 32-bit values on Windows
    • [PHPC-1341] - Remove XFAIL for unacknowledged write concern test
    • [PHPC-1419] - Error label from server error is not exposed in ServerException
    • [PHPC-1432] - Fix documentation for Session::startTransaction() options parameter
    • [PHPC-1435] - Fix Session::startTransaction() arginfo

    ** Epic

    • [PHPC-837] - Update PHP driver to test in Evergreen
    • [PHPC-1112] - Test suite improvements
    • [PHPC-1233] - FY2019Q3 Quick Wins
    • [PHPC-1235] - PHPC MongoDB 4.2 Support
    • [PHPC-1329] - Fix Windows build failures on AppVeyor

    ** New Feature

    • [PHPC-1123] - Create interface for Cursor class
    • [PHPC-1222] - Implement accessor for error labels on exception classes
    • [PHPC-1231] - Add Session::isInTransaction to indicate whether a transaction is active
    • [PHPC-1254] - Implement ObjectID spec
    • [PHPC-1288] - Implement Unified URI Options
    • [PHPC-1290] - Support mongos pinning for sharded transactions
    • [PHPC-1291] - Retryable Reads
    • [PHPC-1292] - Support polling SRV records for mongos discovery
    • [PHPC-1297] - Support sharded transactions recovery token
    • [PHPC-1319] - Drivers should use majority write concern when retrying commitTransaction
    • [PHPC-1324] - Support Retryable Writes on by Default
    • [PHPC-1355] - Add the ability to specify a pipeline to an update command
    • [PHPC-1371] - Drivers send recoveryToken on abortTransaction
    • [PHPC-1382] - Allow applications to set maxTimeMS for commitTransaction

    ** Task

    • [PHPC-691] - Test that Server command/query execute methods send read preference to mongos
    • [PHPC-857] - Create Evergreen matrix for various test configurations
    • [PHPC-858] - Add authentication axis to Evergreen matrix
    • [PHPC-859] - Add SSL axis to Evergreen matrix
    • [PHPC-860] - Add PHP runtime axis to Evergreen matrix
    • [PHPC-861] - Add MongoDB version axis to Evergreen matrix
    • [PHPC-862] - Add Evergreen matrix to run against nightly server builds
    • [PHPC-863] - Add RHEL 7.1/Power 8 to the operating system axis
    • [PHPC-864] - Add storage engines to Evergreen matrix
    • [PHPC-1122] - Check whether we still need SUPPRESS_UNUSED_WARNING
    • [PHPC-1173] - Reimplement replica set seedlist tests
    • [PHPC-1180] - Fix peer certificate verification errors for SSL clusters
    • [PHPC-1219] - Relax requirement for replica set tagsets assertions
    • [PHPC-1240] - Remove noprealloc, nssize and smallfiles from MO configurations
    • [PHPC-1250] - Document the order in which skip_ifs in tests need to be done
    • [PHPC-1271] - Add (only) RHEL on zSeries to Evergreen Matrix
    • [PHPC-1275] - Bump wire protocol version for 4.2
    • [PHPC-1276] - Create tool chain for PHP binaries
    • [PHPC-1299] - Add Ubuntu 16.04/ARM64 to the operating system axis
    • [PHPC-1320] - Regenerate test certificates with SHA256 signatures
    • [PHPC-1333] - Revert to virtualized Travis CI environments
    • [PHPC-1345] - Revise fragile session ID assertions
    • [PHPC-1364] - Upgrade libmongoc to 1.14.0
    • [PHPC-1369] - Upgrade libmongoc to 1.15.0
    • [PHPC-1370] - Revise test assertion for unknown modifier error message
    • [PHPC-1377] - Remove support for PHP 5.5
    • [PHPC-1390] - Remove 7.0 and add 7.3 on AppVeyor
    • [PHPC-1392] - Avoid spurious failure in ConnectionTimeoutException test due to slow auth
    • [PHPC-1399] - Test MongoDB 4.2 in Evergreen
    • [PHPC-1412] - Fix test failures when retryable writes are enabled
    • [PHPC-1413] - Fix test failures executing insert on secondary
    • [PHPC-1414] - Skip tests when mongo orchestration is not available
    • [PHPC-1415] - Fix test failures for sharded cluster without replica set
    • [PHPC-1428] - Bump libmongoc to 1.15.1

    ** Improvement

    • [PHPC-1206] - Add __set_state() support for ReadConcern, ReadPreference, and WriteConcern
    • [PHPC-1229] - Populate error labels for bulk write exceptions
    • [PHPC-1301] - php_phongo_cursor_t.got_iterator should use bool type
    • [PHPC-1307] - Exception interface should extend Throwable on PHP 7+
    • [PHPC-1346] - Do not allow empty string for username
    • [PHPC-1373] - WriteResult is inaccessible if executeBulkWrite() encounters socket error
    • [PHPC-1394] - Don't send $readPreference to standalone servers
    • [PHPC-1422] - Raise an actionable error message when retryWrites fails due to using an unsupported storage engine
    • [PHPC-1431] - Session::startTransaction() should accept null for options
  • zip 1.15.5
    - Fix build with PHP 7.4 - Remove dead code - Replace deprecated libzip functions
  • sdl 2.3.0
    - Fix out of bounds error (remicollet) - Add basic joystick/gamepad support (santiagolizardo)
  • libsodium 2.0.22
    - Security: the sodium_crypto_generichash_init() function used to return a partially uninitialized buffer. This has been fixed. Thanks to @CiPHPerCoder for spotting this. - SODIUM_CRYPTO_PWHASH_STRBYTES has been added
  • xlswriter 1.2.7
    - FEAT read xlsx file. - FIX multiple file segmentation fault.
  • protobuf 3.10.0RC1
    GA release.
  • sqlsrv 5.7.0preview
    [Added] - Support for PHP 7.4 RC 1 - Support for Linux Ubuntu 19.04 and Debian 10 - Feature Request [#929](https://github.com/microsoft/msphpsql/issues/929) - new [Language option](https://github.com/microsoft/msphpsql/wiki/Features#language) - Pull Request [#930](https://github.com/microsoft/msphpsql/pull/930) - [Data Classification Sensitivity Metadata Retrieval](https://github.com/microsoft/msphpsql/wiki/Features#data-classification-sensitivity-metadata), which requires [MS ODBC Driver 17.2+](https://docs.microsoft.com/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server) and [SQL Server 2019 release candidate](https://docs.microsoft.com/sql/sql-server/sql-server-ver15-release-notes?view=sqlallproducts-allversions#-release-candidate-rc) [Removed] - Dropped support for Ubuntu 18.10 [Fixed] - Issue [#570](https://github.com/microsoft/msphpsql/issues/570) - Fixed fetching varbinary data using client buffer with sqlsrv - Pull Request [#972](https://github.com/microsoft/msphpsql/pull/972) - Removed redundant calls to retrieve the number of columns or rows in the current query result set - Pull Request [#979](https://github.com/microsoft/msphpsql/pull/979) - Added support for data classification sensitivity metadata retrieval - Pull Request [#985](https://github.com/microsoft/msphpsql/pull/985) - Fixed memory issues with data classification data structures - Issue [#432](https://github.com/microsoft/msphpsql/issues/432) - Having any invalid UTF-8 name in the connection string will no longer invoke misleading error messages - Issue [#909](https://github.com/microsoft/msphpsql/issues/909) - Fixed potential exception with locale issues in macOS - Pull Request [#992](https://github.com/microsoft/msphpsql/pull/992) - Produced the correct error when requesting Data Classification metadata with ODBC drivers prior to 17 - Pull Request [#1001](https://github.com/microsoft/msphpsql/pull/1001) - Fixed compilation issue with PHP 7.4 alpha - Pull Request [#1004](https://github.com/microsoft/msphpsql/pull/1004) - Fixed another compilation issue with PHP 7.4 alpha - Pull Request [#1008](https://github.com/microsoft/msphpsql/pull/1008) - Improved data caching when fetching datetime objects - Pull Request [#1011](https://github.com/microsoft/msphpsql/pull/1011) - Fixed a potential buffer overflow when parsing for escaped braces in the connection string - Pull Request [#1015](https://github.com/microsoft/msphpsql/pull/1015) - Fixed compilation issues and addressed various memory leaks detected by PHP 7.4 beta 1 [Limitations] - No support for inout / output params when using sql_variant type - No support for inout / output params when formatting decimal values - In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. Attempting to set the locale after connecting will not work - Always Encrypted requires [MS ODBC Driver 17+](https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017) - Only Windows Certificate Store and Azure Key Vault are supported. Custom Keystores are not yet supported - Issue [#716](https://github.com/Microsoft/msphpsql/issues/716) - With Always Encrypted enabled, named parameters in subqueries are not supported - [Always Encrypted limitations](https://docs.microsoft.com/en-us/sql/connect/php/using-always-encrypted-php-drivers?view=sql-server-2017#limitations-of-the-php-drivers-when-using-always-encrypted) [Known Issues] - Data Classification metadata retrieval is not compatible with ODBC Driver 17.4.1 - Connection pooling on Linux or macOS is not recommended with [unixODBC](http://www.unixodbc.org/) < 2.3.7 - When pooling is enabled in Linux or macOS - unixODBC <= 2.3.4 (Linux and macOS) might not return proper diagnostic information, such as error messages, warnings and informative messages - due to this unixODBC bug, fetch large data (such as xml, binary) as streams as a workaround. See the examples [here](https://github.com/Microsoft/msphpsql/wiki/Features#pooling) - With ColumnEncryption enabled, calling stored procedure with XML parameter does not work (Issue [#674](https://github.com/Microsoft/msphpsql/issues/674)) - In SUSE 15, Azure Active Directory connections may fail if PHP is installed from packages (Issue [#934](https://github.com/Microsoft/msphpsql/issues/934))
  • pdo_sqlsrv 5.7.0preview
    [Added] - Support for PHP 7.4 RC 1 - Support for Linux Ubuntu 19.04 and Debian 10 - Feature Request [#929](https://github.com/microsoft/msphpsql/issues/929) - new [Language option](https://github.com/microsoft/msphpsql/wiki/Features#language) - Pull Request [#930](https://github.com/microsoft/msphpsql/pull/930) - [Data Classification Sensitivity Metadata Retrieval](https://github.com/microsoft/msphpsql/wiki/Features#data-classification-sensitivity-metadata), which requires [MS ODBC Driver 17.2+](https://docs.microsoft.com/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server) and [SQL Server 2019 release candidate](https://docs.microsoft.com/sql/sql-server/sql-server-ver15-release-notes?view=sqlallproducts-allversions#-release-candidate-rc) [Removed] - Dropped support for Ubuntu 18.10 [Fixed] - Issue [#570](https://github.com/microsoft/msphpsql/issues/570) - Fixed fetching varbinary data using client buffer with sqlsrv - Pull Request [#972](https://github.com/microsoft/msphpsql/pull/972) - Removed redundant calls to retrieve the number of columns or rows in the current query result set - Pull Request [#978](https://github.com/microsoft/msphpsql/pull/978) - PDO_SQLSRV implementation of PDO::getColumnMeta now references cached metadata rather than making an ODBC call every time - Pull Request [#979](https://github.com/microsoft/msphpsql/pull/979) - Added support for data classification sensitivity metadata retrieval - Pull Request [#985](https://github.com/microsoft/msphpsql/pull/985) - Fixed memory issues with data classification data structures - Issue [#432](https://github.com/microsoft/msphpsql/issues/432) - Having any invalid UTF-8 name in the connection string will no longer invoke misleading error messages - Issue [#909](https://github.com/microsoft/msphpsql/issues/909) - Fixed potential exception with locale issues in macOS - Pull Request [#992](https://github.com/microsoft/msphpsql/pull/992) - Produced the correct error when requesting Data Classification metadata with ODBC drivers prior to 17 - Pull Request [#1001](https://github.com/microsoft/msphpsql/pull/1001) - Fixed compilation issue with PHP 7.4 alpha - Pull Request [#1004](https://github.com/microsoft/msphpsql/pull/1004) - Fixed another compilation issue with PHP 7.4 alpha - Pull Request [#1008](https://github.com/microsoft/msphpsql/pull/1008) - Improved data caching when fetching datetime objects - Pull Request [#1011](https://github.com/microsoft/msphpsql/pull/1011) - Fixed a potential buffer overflow when parsing for escaped braces in the connection string - Pull Request [#1015](https://github.com/microsoft/msphpsql/pull/1015) - Fixed compilation issues and addressed various memory leaks detected by PHP 7.4 beta 1 [Limitations] - No support for inout / output params when using sql_variant type - No support for inout / output params when formatting decimal values - In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. Attempting to set the locale after connecting will not work - Always Encrypted requires [MS ODBC Driver 17+](https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017) - Only Windows Certificate Store and Azure Key Vault are supported. Custom Keystores are not yet supported - Issue [#716](https://github.com/Microsoft/msphpsql/issues/716) - With Always Encrypted enabled, named parameters in subqueries are not supported - [Always Encrypted limitations](https://docs.microsoft.com/en-us/sql/connect/php/using-always-encrypted-php-drivers?view=sql-server-2017#limitations-of-the-php-drivers-when-using-always-encrypted) [Known Issues] - Data Classification metadata retrieval is not compatible with ODBC Driver 17.4.1 - Connection pooling on Linux or macOS is not recommended with [unixODBC](http://www.unixodbc.org/) < 2.3.7 - When pooling is enabled in Linux or macOS - unixODBC <= 2.3.4 (Linux and macOS) might not return proper diagnostic information, such as error messages, warnings and informative messages - due to this unixODBC bug, fetch large data (such as xml, binary) as streams as a workaround. See the examples [here](https://github.com/Microsoft/msphpsql/wiki/Features#pooling) - With ColumnEncryption enabled, calling stored procedure with XML parameter does not work (Issue [#674](https://github.com/Microsoft/msphpsql/issues/674)) - In SUSE 15, Azure Active Directory connections may fail if PHP is installed from packages (Issue [#934](https://github.com/Microsoft/msphpsql/issues/934))
  • http_message 0.2.0
    Added Factory class that implements all PSR-17 interfaces. All properties private. Allow filename and mode for Stream constructor. Allow StreamInterface object for UploadedFile constructor. Move uploaded file copies a stream if stream is supplied. Fixes and cleanup.
tagged:

Link:

Webslesson:
Make Captcha Script in PHP with Ajax
Sep 09, 2019 @ 15:00:02

This post will explain you, how to make your own custom captcha in PHP using jQuery and Ajax in HTML form.Do you know what is captcha. In web development, Captcha is one random generated alpha numeric captcha string, and it is stored in session variable for validate it with the captcha code enter by...

tagged:

Link: https://www.webslesson.info/2019/09/make-captcha-script-in-php-with-ajax.html

murze.be:
★ Generating speaker cards using Tailwind and Laravel
Sep 09, 2019 @ 13:30:02

I'm currently organizing the Full Stack Europe conference. The first edition will be on 23 - 25 October in the beautiful city of Antwerp, Belgium. I believe that the best apps or sites aren't built by programmers. They're built by teams. That's why we designed this conference for everybody and don'...

tagged:

Link: https://freek.dev/1448-generating-speaker-cards-using-tailwind-and-laravel

Gary Hockin - @GeeH:
Writing a game in Laravel and React – Stream Roundup Week 1
Sep 09, 2019 @ 10:30:02

This week on the stream I looked at writing a browser-based game that is similar to the fantastic Steam game Slay the Spire. Slay the Spire is a fun roguelike deck-builder game where you fight increasingly difficult monsters as you climb the titular spires. I decided to build a clone of this game in...

tagged:

Link: https://blog.hock.in/2019/09/04/writing-a-game-in-laravel-and-react-stream-roundup-week-1/

Laravel News:
Running make:auth in Laravel 6
Sep 06, 2019 @ 15:00:02

                            You might have noticed after installing a fresh Laravel 6 application that the ‘make:auth’ command no longer exists. We’ve received lots of messages and emails about this very issue, so I thought I’d write up a quick tutorial on generating auth s...
tagged:

Link: https://laravel-news.com/running-make-auth-in-laravel-6


Trending Topics: