{"repo":"colopl/laravel-spanner","free":true,"listed":false,"github":"https://github.com/colopl/laravel-spanner","clone":"git clone https://github.com/colopl/laravel-spanner.git","description":"Laravel database driver for Google Cloud Spanner","language":"PHP","stars":101,"topics":["google-cloud-platform","google-cloud-spanner","php","laravel"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"laravel-spanner ================ Laravel database driver for Google Cloud Spanner Requirements - PHP = 8.3 - Laravel = 13 - gRPC extension - protobuf extension (recommended for better performance) - sysvmsg , sysvsem , sysvshm extensions (recommended for better performance) Installation Put JSON credential file path to env variable: GOOGLE APPLICATION CREDENTIALS Install via composer Add connection config to config/database.php That's all. You can use database connection as usual. Additional Configurations You can pass SpannerClient config and CacheSessionPool options as below. For more information, please see Google Client Library docs Recommended Setup Please note that the following are not required, but are strongly recommended for better performance. - Install protobuf pecl extension for faster network communication. - Install sysvmsg , sysvsem , sysvshm extensions for faster session management. - Mount the cache directory ( ./storage/framework/spanner by default) to tmpfs for better session io performance. Cache path can be changed by setting connections.{name}.cache path in your config/database.php file. Unsupported features - STRUCT data types - Inserting/Updating JSON data types Limitations SQL Mode Currently only supports Spanner running GoogleSQL (PostgreSQL mode is not supported). Query - Binding more than 950 parameters in a single query will result in an error by the server. In order to by-pass this limitation, this driver will attempt to switch to using Query\\Bu","default_branch":null,"files":null,"tree":[],"storefront":"/r/colopl","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/colopl/laravel-spanner/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}