Giter VIP home page Giter VIP logo

Survos provides a set of Symfony bundles to faciliate rapid development of Symfony applications, and a set of demos and projects that demonstrate how those bundles can be configured and used. Many of the bundles expose [Twig Components][xx] and Twig functions and filters.

Although the bundles often work together, they can be used independently. SurvosBootstrapBundle is an opinionated way to quickly integrated Bootstrap with several Twig Components and implementing the Sneat theme. It leverages KnpMenuBundle to populate the sidebar, navbar, page header and footer. See the [Build A Real Website in 10 minutes] tutorial. Although no bundles have bootstrap-bundle as a dependent, some visually-oriented bundles, like grid-bundle and tree-bundle, require Boostrap to render as intended. Not surprisingly, all the demos and projects use bootstrap-bundle/

Bundles and Dependencies

  • simple-datatables-bundle:

Dokku

dokku config:set DATABASE_URL=postgresql://postgres:[email protected]:5432/kpa?serverVersion=16 dokku config:set MEILI_API_KEY=Y0urVery-S3cureAp1K3y dokku config:set MEILI_SERVER=http://dokku.survos.com:7700/ dokku config:set SENTRY_DSN=https://[email protected]/4506240906166272

DOKKU_APP_RESTORE: 1 DOKKU_APP_TYPE: herokuish DOKKU_PROXY_PORT: 80 GIT_REV: 8f61e59939797be88d658097bbd06ece48d3037b SENTRY_DSN: https://[email protected]/4506240906166272

Demos

See the bundles in actions, and/or build them locally, with these demos (using bootstrap-bundle)

Getting Started

  • Install Symfony 6.1+
  • Install webpack-encore, so that stimulus components work, and run yarn install

A collection of bundles to faciliate rapid development of Symfony applications.

You'll find all packages in /packages directory. Here is a brief overview (tip: click on the package name to see its README with more detailed features):

Key Bundles

These are the bundles used in all the demo and open-source projects built by Survos:

  • [bootstrap-bundle][7] for a beautiful front end.
  • Install [maker-bundle --dev] to rapidly create classes and templates.

Power Bundles

These bundles are used in most applications because they provide utility that is commonly needed.

  • grid-bundle display static tabular data that fits in memory using DataTables
  • api-grid-bundle display tabular data of Doctrine entities using DataTables. Data is loaded via AJAX using ApiPlatform, so developers can integrate a searchable, sortable, infinite-scroll table with just a few lines of code.
  • tree-bundle Use [Gedmo] and API Platform to display and modify hierarchical data.

Other Bundles

These special-purpose bundles are easy to integrate for projects that need them.

  • faker-bundle exposes faker-php methods via twig.
  • barcode-bundle generate SVG barcodes in twig (thin wrapper forpicqer/php-barcode-generator).

Utility Bundles

These bundles are used by other bundles (when functionality is shared), but aren't necessary to include directly in the projects.

  • inspection-bundle Inspects entities to dynamically determine which fields are searchable and sortable. Also exposes twig methods for generating ApiPlatform links to get and update entities (api-grid and api-tree components use these).
  • core-bundle Utilities to facilitate queries and route parameters. Used frequently in our demo projects.

Under Developement

These bundles are usable, but not ready for prime-time.

  • doc-bundle Write your documentation in twig and generate Sphinx documentation.
  • auth-bundle Rapidly integrate authentication, including social media login (built on top of Symfony security-bundle and knp/oauth2).

Coding Standards

symfony new unused-bug --webapp && cd unused-bug
bin/console make:controller AppController
sed -i 's|"type"|"name": "survos/bug", "description": "demo of a bug" , "type"|' composer.json
composer req knplabs/knp-time-bundle
sed -i "s|/app|/|" src/Controller/AppController.php 

cat <<'EOF' > templates/app/index.html.twig
{% extends 'base.html.twig' %}
{% block body %}
{{ "now"|date("m/d/Y")|ago }}
{% endblock %}
EOF

#echo "{{ 'test'|barcode }} or {{ barcode('test', 2, 80, 'red') }} " >> templates/app/index.html.twig
symfony server:start -d
symfony open:local

curl -OL https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar
php composer-unused.phar

bin/console make:controller App cat <<'EOF' > templates/app/index.html.twig {% extends 'base.html.twig' %} {% block body %} {{ sparkline([2,3,10,8,23,14,9,12,0,0,14])|raw }} {% endblock %} EOF

cat <<'EOF' > tests/AllRoutesTest.php

Survos's Projects

photo-browser icon photo-browser

Web-based browsing using the DikiKam Photo Database (ALPHA)

pomm icon pomm

PHP Object Model Manager for Postgresql

portphp icon portphp

Data import/export framework for PHP

propel icon propel

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

providence icon providence

Cataloguing and data/media management application

rapidpro icon rapidpro

RapidPro allows organizations to visually build scalable interactive messaging applications.

remote icon remote

[READ-ONLY] Subtree split of the Sample PHP scripts for interacting with the Survos Platform via the API or Queues

remote-orig icon remote-orig

Sample PHP scripts for interacting with the Survos Platform via the API or Queues

screenplay-parser icon screenplay-parser

Generates auto-breakdowns from Final Draft, Adobe Story, Celtx, and Fountain screenplay files.

scroller icon scroller

Virtual scrolling plug-in for DataTables

select2entity-bundle icon select2entity-bundle

A Symfony2 bundle that integrates Select2 as a drop-in replacement for a standard entity field on a Symfony form.

services_openstreetmap icon services_openstreetmap

OpenStreetMap is a global project with an aim of collaboratively collecting map data. This package aims to make communicating with the OSM API intuitive.

settingsbundle icon settingsbundle

Database centric Symfony2 configuration management bundle. Global and per-entity settings supported.

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.