Download the PHP package sagilem/fewd without Composer

On this page you can find all versions of the php package sagilem/fewd. 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 fewd

FEWD - Just a FEW Development

What is it ?

FEWD is yet another lightweight PHP framework.

Quick to learn, quick to use, quick to run.

It can be used as a foundation for a new project, or as a complement to any other framework, due to its modular approach.

Usage

The main source directory src/Fewd can be uploaded anywhere in your project (let's say, under /Lib).

<?php

    include 'Lib/Fewd/Fewd.php';

And that's it.

Fewd also holds some facultative dependencies to external libraries. If you need some of them, please run compose update at root of the Fewd directory.

FEWD is composed by modules

Modules basically are folders under your FEWD directory.

Fewd implements its own development pattern, called... Fewd Pattern. Custom modules can also be created following this pattern, and can be put wherever you want in your project.

If Xyz is the module name, then there will be a file called TXyz.php, it describes the class TXyz that is intended to be instantiated as a singleton. This singleton will deliver all general methods and properties of the module.

A module may contain php class files, image files, css files and other resources.

Major modules are :

Name Objective
CORE Contains everything needed to build a new module and some generic tools
TIMER Tools for performance benchmark
TRACER Tools for debugging
ROUTER Associates an Url to a route
HTML Html document generation
BOOTSTRAP A set of Html starting components + component resize queries
TRANSLATOR Internationalization
APP An all-in-one app generator

Unit testing

Under the module, there is also a file called TXyzTest.php. It is the unit test script.

To run a unit test :

<? php

use Fewd\Core\TCore;

$test = new TCoreTest();
$test->Run();

// Any failure will be prompted directly on screen.
// But if you want to get the detail from all detected failures :
var_dump($test->Failures());

Instantiation

To instantiate the Xyz module singleton :

<?php

use <path>\Xyz\TXyz;

$xyz = new TXyz(<parameters>);
$xyz->Init();

And that's it.

Please note : Never forget the Init() call just after instantiation !


All versions of fewd with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
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 sagilem/fewd contains the following files

Loading the files please wait ....