Skip to content

janhancic/sphinx-generate-config-php

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Sphinx Generate Config PHP (sgc.php)

What is it?

A CLI PHP script for generating Sphinx config files. Developed at Popcom d.o.o. where we need a more efficient way of writing Sphinx config files. We have a lot of websites that are localized versions of the same website, and so have the same code base, but use different databases (with the same structure). Writing Sphinx config files for all this version soon became tedious and error prone. So I wrote this little tools, where you define indexes and then it generates config files for all websites.

How to use it?

Look at "sphinxconfig.php" for an example config file where you define your indexes&sources and define hosts (web pages) that use those sources&indexes. Then run php sgc.php configname.php

License

Do whatever you want with this.

About

Sphinx Generate Config PHP (sgc.php) is a PHP CLI script for generating Sphinx (search) config files for multiple projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages