Giter Site home page Giter Site logo

wowazzz / vaeql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devteam4509/vaeql

0.0 2.0 0.0 2.92 MB

PHP Extension that provides accelerated parsing for VaeDB queries.

License: GNU Affero General Public License v3.0

Makefile 0.13% GAP 2.05% C 97.81%

vaeql's Introduction

VaeQL

PHP Extension that provides accelerated parsing for VaeDB queries.

Build and install this before Vae Remote.

License

Copyright (c) 2007-2016 Action Verb, LLC.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program, in the file called COPYING-AGPL. If not, see http://www.gnu.org/licenses/.

Prerequisites

  • PHP 7.0
  • libantlr3c (MUST be version 3.2)

Installing prerequisites on Mac:

DO NOT install libantlr3c using Homebrew, as that only supplies version 3.4.

To compile libantlr3c:

wget http://www.antlr3.org/download/C/libantlr3c-3.2.tar.gz
tar -zxvf libantlr3c-3.2.tar.gz
cd libantlr3c-3.2
./configure --enable-64bit
make
make install

I recommend using Homebrew for PHP so future version management of PHP is easier. To do so, run:

brew install php70
brew install php70-opcache

As part of installing PHP 7.0 from Homebrew, you'll need to update your $PATH in your shell to use their PHP 7.0 as the default PHP binaries. This is key because VaeQL uses the "php-config" binary for its installation process.

At this point, running php should work.

Ensure that you have Opcache installed because it's also used in our production environment and can cause errors, so you want to make sure it's also being used for the unit tests. You should see output when you run:

php -i | grep "Zend O"

... and it should mention Zend Opcache.

With these two things ready, you should be able to compile VaeQL.

Compiling:

make
make install

Then add this line to your php.ini. If you are using Homebrew the path is /usr/local/etc/php/7.0/php.ini. Otherwise, it might be in /etc. Run php --ini to look for candidate locations for the file.

extension=vaeql.so

Testing:

You should be able to run this command and see some output. There should be no dylib or load errors.

php -i | grep VaeQueryLanguage

This project is tested entirely using the test suite in Vae Remote. It is very easy to add more tasks to that test suite and we likely do not need one here.

vaeql's People

Contributors

alfredr avatar bombino avatar cosine avatar gpurrenhage avatar zarthur avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.