Download the PHP package ytake/laravel-couchbase without Composer
On this page you can find all versions of the php package ytake/laravel-couchbase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-couchbase
Laravel-Couchbase
for Laravel 5.1.*(higher)
cache, session, database, queue extension package required ext-couchbase
Notice
Supported Auto-Discovery, Design Document, Cache Lock (Laravel5.5)
Laravel version | Laravel-Couchbase version | ext-couchbase |
---|---|---|
Laravel 5.6 | ^1.1 | >=2.3.2 |
Laravel 5.5 | ^1.0 | >=2.3.2 |
Laravel 5.4 | ^0.7 | ^2.2.2 |
Laravel 5.3 | ^0.6 | ^2.2.2 |
Laravel 5.2 | ^0.5 | ^2.2.2 |
Laravel 5.1 | ^0.4 | ^2.2.2 |
Deprecated
not recommended couchbase-memcached driver couchbase session driver
install
or your config/app.php
usage
database extension
add database driver(config/database.php)
case cluster
choose bucket table()
method
or
basic usage bucket()
method
N1QL supported(upsert enabled)
see http://developer.couchbase.com/documentation/server/4.1/n1ql/n1ql-language-reference/index.html
SELECT
INSERT / UPSERT
DELETE / UPDATE
execute queries
example)
``
returning
default *
View Query
cache extension
for bucket type couchbase
config/cache.php
for bucket type memcached
not supported
couchbase bucket, use bucket password
config/cache.php
session extension
.env etc..
specify couchbase driver
consistency
default :CouchbaseN1qlQuery::NOT_BOUNDED
callable consistency
Event
for N1QL
events | description |
---|---|
\Ytake\LaravelCouchbase\Events\QueryPrepared | get n1ql query |
\Ytake\LaravelCouchbase\Events\ResultReturning | get all property from returned result |
\Ytake\LaravelCouchbase\Events\ViewQuerying | for view query (request uri) |
Schema / Migrations
The database driver also has (limited) schema builder support.
easily manipulate indexes(primary and secondary)
Supported operations:
- create and drop
- index and dropIndex (primary index and secondary index)
Artisan
for couchbase manipulate indexes
commands | description |
---|---|
couchbase:create-index | Create a secondary index for the current bucket. |
couchbase:create-primary-index | Create a primary N1QL index for the current bucket. |
couchbase:drop-index | Drop the given secondary index associated with the current bucket. |
couchbase:drop-primary-index | Drop the given primary index associated with the current bucket. |
couchbase:indexes | List all N1QL indexes that are registered for the current bucket. |
couchbase:create-queue-index | Create primary index, secondary indexes for the queue jobs couchbase bucket. |
couchbase:create-design | Inserts design document and fails if it is exist already. for MapReduce views |
-h
more information.
create design
config/couchbase.php
Queue
Change the the driver in config/queue.php:
example
hacking
To run tests there are should be following buckets created on local Couchbase cluster:
Also tests are expecting regular Memcached daemon listening on port 11255.
soon
- authintication driver
- Eloquent support
Couchbase Document
REST API / Creating and Editing Buckets
couchbase-cli / user-manage
Authentication
Authorization API
All versions of laravel-couchbase with dependencies
ext-couchbase Version >=2.3.2
illuminate/support Version 5.6.*
illuminate/config Version 5.6.*
illuminate/console Version 5.6.*
illuminate/events Version 5.6.*
illuminate/cache Version 5.6.*
illuminate/session Version 5.6.*
illuminate/database Version 5.6.*
illuminate/encryption Version 5.6.*
illuminate/queue Version 5.6.*
illuminate/contracts Version 5.6.*
illuminate/container Version 5.6.*