Download the PHP package survos/core-bundle without Composer

On this page you can find all versions of the php package survos/core-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package core-bundle

Corebundle

Symfony Bundle with interfaces, traits, models and services needed by more than one Survos components. For example, Model\Column is used by grid, api-grid and simple-datatables. RouteParametersInterface is used by tree and the griid bundles.

https://github.com/symfony/symfony/issues/20083

Now use .rp in twig and ->getRp() in php as part of generating a route

Combined with survos/maker-bundle, create a param converter

Helper Tasks

echo "SYMFONY_DEPRECATIONS_HELPER=weak" >> .env

Shared Utilities

Survos\CoreBundle\Service\SurvosUtils is the home for small, shared helpers that are useful across multiple Survos bundles and applications. Before adding local string/path/entity helper methods in another bundle, check here first.

Common static helpers:

Helper Purpose
SurvosUtils::slugify($code, separator: '_') Stable ASCII slugs for route codes, index names, file-safe identifiers, and bundle metadata.
SurvosUtils::entityCode($class) Stable admin/browser code for entity classes. App\Entity\Intake becomes app_intake; Survos\OutreachBundle\Entity\Contact becomes outreach_contact. Used by api-grid and Tabler admin menus.
SurvosUtils::formatLargeNumber($number) Compact counts for badges and summaries, e.g. 1.2k or 3.4m.
SurvosUtils::humanFilesize($size) Human readable byte sizes.
SurvosUtils::parseQueryString($data) Query-string parsing that preserves parameter names Symfony/PHP would otherwise normalize.
SurvosUtils::actualClass($objectOrClass) Resolve Doctrine proxy classes back to their real class name.
SurvosUtils::createDir($dir) Create a directory if missing and return its real path with a trailing slash.
SurvosUtils::assertKeyExists() / assertInArray() Assertions with useful “missing key/value” diagnostics.

Example:

Instance helpers are available when the service is injected:

Helper Purpose
$utils->cleanPath($filename) Shorten paths relative to kernel.project_dir for logs/debug output.
$utils->flatten($messages) Flatten nested message/config arrays into dot paths.
$utils->populateObjectFromData($object, $data) Populate an object using Symfony PropertyAccess.

Guideline for agents and bundle authors: if a helper needs to be shared by api-grid-bundle, tabler-bundle, field-bundle, maker code, or app code, put it in core-bundle instead of recreating it locally.


All versions of core-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
symfony/config Version ^8.1
symfony/dependency-injection Version ^8.1
symfony/http-kernel Version ^8.1
symfony/serializer Version ^8.1
twig/twig Version ^3.4
symfony/string Version ^8.1
symfony/property-access Version ^8.1
doctrine/common Version ^3.5
ext-zlib Version *
survos/debug-utils Version ^2.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package survos/core-bundle contains the following files

Loading the files please wait ...