OpenCFP 项目的仓库,这是一个基于 PHP 的会议演讲提交系统
OpenCFP is a PHP-based conference talk submission system.
OpenCFP is now in maintenance mode with only security fixes being accepted
You can find screenshots of the application in our wiki
See CONTRIBUTING.md.
mod_rewrite enabled and an AllowOverride all directive in your `` block is the recommended web serverphp7.0-intl extension for PHP. (php-intl on CentOS/RHEL-based distributions)We request that anyone who installs OpenCFP to not share any of the personal information that is collected from users with any third parties without explicit permission from users and to also be aware of the existence of the European Union's General Data Protection Regulation as it could potentially impact your ability to accept submissions from anyone residing within the European Union.
Tools to make it easier to comply with the GDPR are in the process of being created.
We recommend that you delete any data stored in a database associated with an OpenCFP instance within 15 months of accepting submissions from users.
It is recommended for you to always install the latest marked release. Go to https://github.com/opencfp/opencfp/releases to download it.
Clone this project into your working directory. We recommend always running the master branch as it was frequent contributions.
Example:
$ git clone [email protected]:opencfp/opencfp.git
Cloning into 'opencfp'...
remote: Counting objects: 4794, done.
remote: Total 4794 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (4794/4794), 1.59 MiB | 10.37 MiB/s, done.
Resolving deltas: 100% (2314/2314), done.
Checking connectivity... done.OpenCFP can be configured to run in multiple environments. The application environment (CFP_ENV) must be specified
as an environment variable. If not specified, the default is development.
An example Apache configuration is provided at /web/htaccess.dist. Copy this file to /web/.htaccess or otherwise
configure your web server in the same way and change the CFP_ENV value to specify a different environment. The
default has been pre-set for development.
SetEnv CFP_ENV productionYou will also need to set the CFP_ENV variable in the shell you are using when doing an install. Here are some
ways to do that with common shells assuming we're using production:
export CFP_ENV=productionexport CFP_ENV = productionset -x CFP_ENV productionAgain, just use your preferred environment in place of production if required.
From the project directory, run the following command. You may need to download composer.phar first from http://getcomposer.org
$ php composer.phar run setup-envIf you have composer installed globally you can run:
$ composer run setup-envOr you can run
$ ./script/setupDue to current dependencies you will see the following warning message when installing this project's dependencies via Composer:
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.Set up your desired webserver to point to the /web directory.
Apache 2+ Example:
DocumentRoot /path/to/web
ServerName cfp.conference.com
# Other Directives Here
nginx Example:
…After having gone through the setup steps and database migrations, you can test out OpenCFP locally by installing the Symfony binary and using the following command:
symfony server:startBy default it should start up a web server running your site at https://127.0.0.1:8000
Create a new database for the application to use. You will need to have the following handy to continue configuring your installation of OpenCFP:
Depending on which environment you specified above, you will need to make a copy of the distributed configuration schema to enter your own details into.
For example, if you specified SetEnv CFP_ENV production:
$ cp config/production.yml.dist config/production.ymlAfter making a local copy, edit config/production.yml and specify your own details. Here are some important options
to consider:
| Option | Description |
|---|---|
application.enddate |
This is the date your call for proposals would end on. |
application.coc_link |
Set this to the link for your conference code of conduct to require speakers to agree to the code of conduct at registration |
secure_ssl |
This should be enabled, if possible. Requires a valid SSL certificate. |
database.* |
This is the database information you collected above. |
mail.* |
This is SMTP configuration for sending mail. The application sends notifications on various system events. |
opencfpcentral.* |
Settings related to using OpenCFP Central for single-sign-on |
talk.categories.* |
dbkey: Display Name mapping for your talk categories |
talk.types.* |
dbkey: Display Name mapping for your talk types |
talk.levels.* |
dbkey: Display Name mapping for your talk levels |
For example, if you wanted to setup Mailgun as your email provider, your mail configuration would look something like this:
mail:
host: smtp.mailgun.org
port: 587
username: [email protected]
password: "a1b2c3d4"
encryption: tls
auth_mode: ~As the project migrates from using Eloquent to Doctrine you also need to edit the following files to ensure the database
credentials are correct, creating a version of the modified file in the same location but without the .dist suffix.
resources/config/config_testing.yml.dist
resources/config/config_development.yml.dist
resources/config/config_production.yml.dist
If you are running OpenCFP behind a proxy server which adds X-Forwarded-For headers (this could be a cloud based load balancer or a service such as Cloudflare) you will need to set the environment variable TRUST_PROXIES to true this will ensure that OpenCFP trusts the headers set by these proxies for the original IP address and ssl mode. Setting this will trust these headers regardless of where the original request originates, so it's advisable to either lock down your instance so that only the trusted proxy can access it or modify the list of trusted proxies in the index.php file to only include the ip addresses of your proxies.
This project uses Doctrine Migrations to handle migrations.
To run the existing migrations, make sure you are in the root directory for the project and run the following:
$ bin/console doctrine:migrations:migrate --env= where is one of testing, development, or production. The default environment is development
After running $ composer run setup-env (or $ ./script/setup) from the project root run php vendor/bin/homestead make.
This will create a Homestead.yaml based on settings from Homestead.yaml.example. Do not version control Homestead.yaml
Run vagrant up
Add 192.168.10.10 opencfp.test to your operating system's hosts file (/etc/hosts)
Point your browser to http://opencfp.test
Edit your config/development.yml to use Homestead's database & mail settings:
database:
host: 127.0.0.1
database: cfp
dsn: mysql:dbname=cfp;host=127.0.0.1
user: homestead
password: secret
log:
level: debug
mail:
host: localhost
port: 1025
username: ~
password: ~
encryption: ~
auth_mode: ~Mailhog (local mail catching) can be viewed at http://opencfp.test:8025
For more usage information please see the Laravel Homestead Docs
You also need to edit the following files for Doctrine support
/web/uploads/cache/:environment (e.g. /cache/production)/logmemory_limit of the web server to allow image processing of head-shots. This is largely
dictated by the size of the images people upload. Typically 512M works./web/assets/css/app.css to your heart's content.Quoting OpenSource:
"Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. By doing so, thanks to the container, the developer can rest assured that the application will run on any other Linux machine regardless of any customized settings that machine might
暂无开放 Issues,或尚未同步最近议题。