doclite | PHP NoSQL database and document store | Database library

 by   dwgebler PHP Version: 1.1.7 License: MIT

kandi X-RAY | doclite Summary

kandi X-RAY | doclite Summary

doclite is a PHP library typically used in Database, MongoDB applications. doclite has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

DocLite is a powerful NoSQL document store for PHP built on top of SQLite. It uses the PHP PDO SQLite library to access a SQLite database and automatically manage documents organized in to named collections, which are stored as JSON. DocLite takes advantage of the SQLite JSON1 extension (this is usually bundled in to the libsqlite included with your PHP distribution, so you probably already have it) to store, parse, index and query JSON documents - giving you the power and flexibility of a fully transactional and ACID compliant NoSQL solution, yet contained within the local file system. No need for more complex systems like Mongo, CouchDB or Elasticsearch when your requirements are slim. No need for any external dependencies, just PHP with PDO SQLite enabled. DocLite provides a simple, intuitive, flexible and powerful PHP library that you can learn, install and start using in minutes.

            kandi-support Support

              doclite has a low active ecosystem.
              It has 63 star(s) with 5 fork(s). There are 5 watchers for this library.
              It had no major release in the last 12 months.
              There are 3 open issues and 13 have been closed. On average issues are closed in 5 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of doclite is 1.1.7

            kandi-Quality Quality

              doclite has no bugs reported.

            kandi-Security Security

              doclite has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              doclite is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              doclite releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed doclite and discovered the below as its top functions. This is intended to give you an instant insight into doclite implemented functionality, and help decide if they suit your requirements.
            • Checks if a file is a SQLite database .
            • Returns an array of files matching the given extension .
            • Adds a file .
            • Validate path .
            • Read file .
            • Create a path .
            Get all kandi verified functions for this library.

            doclite Key Features

            No Key Features are available at this moment for doclite.

            doclite Examples and Code Snippets

            Getting and setting document data
            PHPdot img1Lines of Code : 52dot img1License : Permissive (MIT)
            copy iconCopy
            $users = $db->collection("Users");
            // Create a new Document with an auto generated UUID.
            $user = $db->get();
            // Create a new property called username via a magic setter.
            // Create a new property called passwor  
            DocLite,Getting Started
            PHPdot img2Lines of Code : 49dot img2License : Permissive (MIT)
            copy iconCopy
            use Gebler\Doclite\{FileDatabase, MemoryDatabase};
            // To create or open an existing file database.
            $db = new FileDatabase('/path/to/db');
            // To open an existing file database in read-only mode.
            $db = new FileDatabase('/path/to/existing/db', true);
            DocLite,The Database,Creating a file database
            PHPdot img3Lines of Code : 27dot img3License : Permissive (MIT)
            copy iconCopy
            use Gebler\Doclite\FileDatabase;
            // Open a new database
            $db = new FileDatabase('./data/mydb.db');
            // Open an existing database in read-only mode
            $db = new FileDatabase('./data/mydb.db', true);
            // Open a new database called data.db in existing dire  

            Community Discussions


            Generic CXF WSDL-based Server using JAXB databinding
            Asked 2020-Apr-16 at 06:46

            I'm looking for a solution to integrate CXF into an application as a provider for Web services implementation. The application should be able to implement a web-service in a dynamic manner (this means that SEI classes are not available) based on the provided WSDL file. Since the application manages http requests and url mappings via its own servlet, its not feasible to use standard CXF servlet to publish endpoints. Also, I want to use JAXB databinding. Ideally CXF should call my Object invoke(String oper, Object... args) to do real processing of web service. Overall it should look like dynamic client but implemented for the server part.

            I've managed to get the code almost working, but bumped into a couple of things that I don't understand - about this later.

            First I read WSDL into a String and create its definition. Definition is precached in wsdlManager to be accessible via unique reference. Than I create JaxWS dynamic client and grab JAXB databinding that was generated for it by CXF.



            Answered 2020-Apr-16 at 06:46

            Here is the answer to my own question. Things get right if reusing the CXF service instance from dynamic client with addition of some server part interceptors:


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install doclite

            PHP 7.4 or above. With PDO SQLite enabled, built against libsqlite ≥ 3.18.0 with JSON1 extension. (on most systems, if you're running PHP 7.4 you probably already meet the second requirement). DocLite provides both a FileDatabase and MemoryDatabase implementation. To create or open an existing database, simply create a Database object, specifying the file path if using a FileDatabase. If your FileDatabase does not exist, it will be created (ensure your script has the appropriate write permissions). This will include creating any parent directories as required. If you specify an existing directory without a filename, a default filename data.db will be used. Once you have opened a database, you can obtain a document Collection which will be automatically created if it does not exist. The Collection object can then be used to retrieve, create and manipulate documents. In the example above, $user is an instance of a DocLite Document, but you can also hydrate objects of your own custom classes from a collection.
            PHP 7.4 or above
            With PDO SQLite enabled, built against libsqlite ≥ 3.18.0 with JSON1 extension.


            Please raise an issue on the project GitHub if you encounter any problems. I am always interested in improving the software.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link