Giter Site home page Giter Site logo

php-extension-library's Introduction

php-extension-library

Index

About

This is a PHP extension library collection with *.so files to make adding libraries to PHP easy.

Setup

Documentation

pcntl.so

Current Versions

  • [email protected].*

  • [email protected].*

  • [email protected].*

  • [email protected].*

  • php@8.*

    1. Download pcntl.so from the appropriate subdirectory of this repo based on your php version
    2. Move to extensions
    • Move pcntl.so file to /Applications/MAMP/bin/php/phpX.Y.Z/lib/php/extensions/no-debug-non-zts-xxxxxxxx
    1. Update INI
    • Add extension=pcntl.so to your php.ini
      • Tip: Use php --ini to locate the file.

redis.so

Current Versions

php@^3.0.0

  1. Mkdir include/php in php root * Example: /Applications/MAMP/bin/php/php5.5.10/include/php.
  2. Download php source file from php.net * Example: If you want to compile extension for php 5.4.42, then download php5.4.42.tar.gz
  3. Extract tar to the include/php directory.
  4. Execute ./configure in include/php.
  5. cd /Applications/MAMP/bin/php/phpX.Y.Z/bin and execute ./pecl install redis (for default version) * Tip:: Run ./pecl install redis-2.2.8 for special version.
  6. Add extension="redis.so" to the end of php.ini

php@^4.0.0

  1. You may need install autoconf via brew install autoconf.
  2. cd /Applications/MAMP/bin/php/phpX.Y.Z/bin and execute ./pecl install redis (for default version) * Tip: Run ./pecl install redis-3.1.2 for special version.
  3. Add extension="redis.so" to the end of php.ini

php@>=5.0.0

  1. Download pcntl.so from the appropriate subdirectory of this repo based on your php version
  2. Move to extensions * Move redis.so file to /Applications/MAMP/bin/php/phpX.Y.Z/lib/php/extensions/no-debug-non-zts-xxxxxxxx
  3. Update INI * Add extension=redis.so to your php.ini
    • Tip: Use php --ini to locate the file.

Issues

If you find any issues feel free to open a request in the Issues tab. If I have the time I will try to solve any issues but cannot make any guarantees. Feel free to contribute yourself.

php-extension-library's People

Contributors

jrquick17 avatar panxianhai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-extension-library's Issues

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.