than-aa / pdf-to-html-th
Package Repository Website Customize
Requires
- php: ^7.2
- ext-ctype: *
- ext-iconv: *
- algolia/algoliasearch-client-php: ^3.0
- babdev/pagerfanta-bundle: ^4.2
- beelab/recaptcha2-bundle: ^2.3
- cebe/markdown: ^1.1
- composer/composer: ^2.8@dev
- composer/pcre: ^3.0
- doctrine/annotations: ^2
- doctrine/common: ^3
- doctrine/doctrine-bundle: ^2.2
- doctrine/orm: ^2.7
- endroid/qr-code: ^6
- graze/dog-statsd: ^1
- knplabs/knp-menu-bundle: ^3
- knpuniversity/oauth2-client-bundle: ^2.8
- laminas/laminas-diagnostics: ^1.6
- laminas/laminas-feed: ^2.13
- league/oauth2-github: ^3.0
- nelmio/cors-bundle: ^2
- nelmio/security-bundle: ^3
- pagerfanta/core: ^4.2
- pagerfanta/doctrine-orm-adapter: ^4.2
- pagerfanta/twig: ^4.2
- phpdocumentor/reflection-docblock: ^5.2
- predis/predis: ^2.0
- scheb/2fa-backup-code: ^7
- scheb/2fa-bundle: ^7
- scheb/2fa-totp: ^7
- scheb/2fa-trusted-device: ^7
- seld/signal-handler: ^2
- snc/redis-bundle: ^4.7
- symfony/asset: ^7
- symfony/console: ^7
- symfony/doctrine-bridge: ^7
- symfony/dotenv: ^7
- symfony/expression-language: ^7
- symfony/flex: ^2
- symfony/form: ^7
- symfony/framework-bundle: ^7
- symfony/html-sanitizer: ^7.0
- symfony/http-client: ^7
- symfony/intl: ^7
- symfony/lock: ^7
- symfony/mailer: ^7
- symfony/monolog-bundle: ^3.6
- symfony/process: ^7
- symfony/property-access: ^7
- symfony/property-info: ^7
- symfony/proxy-manager-bridge: ^6
- symfony/runtime: ^7
- symfony/security-bundle: ^7
- symfony/serializer: ^7
- symfony/translation: ^7
- symfony/twig-bundle: ^7
- symfony/uid: ^7
- symfony/validator: ^7
- symfony/web-link: ^7
- symfony/yaml: ^7
- symfonycasts/verify-email-bundle: ^1.4
- twig/extra-bundle: ^3.0
- twig/string-extra: ^3.2
- twig/twig: ^3.0
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: ^3.4
- phpstan/phpstan: ^2
- phpstan/phpstan-deprecation-rules: ^2
- phpstan/phpstan-doctrine: ^2
- phpstan/phpstan-symfony: ^2
- phpstan/phpstan-webmozart-assert: ^2
- phpunit/phpunit: ^11.0
- staabm/phpstan-dba: ^0.3
- staabm/phpstan-todo-by: ^0.2
- symfony/browser-kit: ^7
- symfony/css-selector: ^7
- symfony/debug-bundle: ^7
- symfony/maker-bundle: ^1.30
- symfony/stopwatch: ^7
- symfony/var-dumper: ^7
- symfony/web-profiler-bundle: ^7
Replaces
- paragonie/random_compat: 2.*
- symfony/polyfill-ctype: *
- symfony/polyfill-iconv: *
- symfony/polyfill-php56: *
- symfony/polyfill-php70: *
- symfony/polyfill-php71: *
- symfony/polyfill-php72: *
- symfony/polyfill-php73: *
- symfony/polyfill-php74: *
- symfony/polyfill-php80: *
- symfony/polyfill-php81: *
- symfony/polyfill-php82: *
- symfony/polyfill-php83: *
This package is auto-updated.
Last update: 2024-12-22 13:20:46 UTC
README
Package Repository Website for Composer, see the about page on packagist.org for more.
This project is not meant for re-use.
It is open source to make it easy to contribute. We provide no support if you want to run your own, and will do breaking changes without notice.
Check out Private Packagist if you want to host your own packages.
Development
These steps are provided for development purposes only.
Requirements
- PHP for the web app
- NPM (or Docker) for the frontend build
- Symfony CLI to run the web server
- MySQL (or Docker) for the main data store
- Redis (or Docker) for some functionality (favorites, download statistics)
- git / svn / hg depending on which repositories you want to support
Installation
-
Clone the repository
-
Install dependencies:
composer install npm install
Ensure env vars are set up correctly, you probably need to set
APP_MAILER_FROM_EMAIL
,APP_MAILER_FROM_NAME
andAPP_DEV_EMAIL_RECIPIENT
in.env.local
. Set alsoMAILER_DSN
if you'd like to receive email. -
Start the web server:
symfony serve -d
-
Start MySQL & Redis:
docker compose up -d # or somehow run MySQL & Redis on localhost without Docker
This mounts the current working directory into the node container and runs npm install and npm run build automatically.
-
Create 2 databases:
packagist
- for the web apppackagist_test
- for running the tests
bin/console doctrine:database:create bin/console doctrine:database:create --env=test
-
Setup the database schema:
bin/console doctrine:schema:create
-
Run a CRON job
bin/console packagist:run-workers
to make sure packages update. -
Run
npm run build
ornpm run dev
to build (or build&watch) css/js files. When using Docker rundocker compose run node npm run dev
to watch css/js files.
You should now be able to access the site, create a user, etc.
Fixtures
You can get test data by running the fixtures:
bin/console doctrine:fixtures:load --group base bin/console doctrine:fixtures:load --group downloads --append
This will create some packages, update them from GitHub, populate them
with fake download stats, and assign a user named dev
(with password: dev
)
as their maintainer.
There is also a user user
(with password: user
) that has no access if you
need to check readonly views.
Finally there is a user admin
(with password: admin
) that has super admin
permissions.
Search
To use the search in your local development environment, setup an
Algolia Account and configure following keys
in your .env.local
:
ALGOLIA_APP_ID= ALGOLIA_ADMIN_KEY= ALGOLIA_SEARCH_KEY= ALGOLIA_INDEX_NAME=
To setup the search index, run:
bin/console algolia:configure bin/console packagist:index